From dbfcb1dcccdbeb38841613ab6c2f4ea867017d5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristina=20Sk=C3=A5re?= Date: Wed, 4 Sep 2024 11:19:46 +0200 Subject: [PATCH] byttet til fra label til annotate pga warning --- inst/NORIC_tavi_report.Rmd | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/inst/NORIC_tavi_report.Rmd b/inst/NORIC_tavi_report.Rmd index 1b51c36a..513c5519 100644 --- a/inst/NORIC_tavi_report.Rmd +++ b/inst/NORIC_tavi_report.Rmd @@ -476,14 +476,16 @@ ggplot2::ggplot(df_cumplot) + periode_data$sisteHeleYear:periode_data$nyesteRegYear), breaks = periode_data$sisteHeleYear:periode_data$nyesteRegYear) + - ggplot2::geom_label(mapping = ggplot2::aes(x= 12, - y = tot_fjor * 0.95, - label = tot_fjor) , - colour = colPrimary[3]) + - - ggplot2::geom_label(mapping = ggplot2::aes(x= periode_data$nyesteRegMnd, - y = tot_aar * 0.95, - label = tot_aar), + ggplot2::annotate(geom = "label", + x= 12, + y = tot_fjor * 0.95, + label = tot_fjor, + colour = colPrimary[3]) + + + ggplot2::annotate(geom = "label", + x= periode_data$nyesteRegMnd, + y = tot_aar * 0.95, + label = tot_aar, colour = colKontrast) + ggplot2::xlab("") +