Closed akgfelice closed 3 years ago
Using the code from the example homepage segment.linetype seems not to be recognized
Here is the minimum amount of code needed to demonstrate the issue:
geom_text_repel(data=joined.data.diff.all%>%filter(Time == max(Time)), aes(x= Time, y=ICU.Auslastung, label=formatC((ICU.Auslastung),digits=1,format ="f"), color=Bundesland), xlim = Sys.Date()+3, min.segment.length = unit(0, 'lines'), show.legend = FALSE, arrow = arrow(length = unit(0.01, "npc"), type ="closed"), segment.linetype = 6, )
Here is an image of the output produced by the code:
IMAGE
This is my proposal for how to solve the issue.
Here is the output from sessionInfo() in my R session:
sessionInfo()
R version 4.0.2 (2020-06-22) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 18363) Matrix products: default locale: [1] LC_COLLATE=German_Germany.1252 LC_CTYPE=German_Germany.1252 [3] LC_MONETARY=German_Germany.1252 LC_NUMERIC=C [5] LC_TIME=German_Germany.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] ggthemes_4.2.0 gridExtra_2.3 formattable_0.2.0.1 [4] ggrepel_0.8.2 forecast_8.13 tidyquant_1.0.1 [7] quantmod_0.4.17 TTR_0.24.2 lubridate_1.7.9 [10] ggpubr_0.4.0 GGally_2.0.0 psych_2.0.9 [13] forcats_0.5.0 stringr_1.4.0 dplyr_1.0.2 [16] purrr_0.3.4 readr_1.4.0 tidyr_1.1.2 [19] tibble_3.0.3 tidyverse_1.3.0 readxl_1.3.1 [22] knitr_1.30 PerformanceAnalytics_2.0.4 xts_0.12.1 [25] zoo_1.8-8 corrplot_0.84 FactoMineR_2.3 [28] factoextra_1.0.7 ggplot2_3.3.2 loaded via a namespace (and not attached): [1] colorspace_1.4-1 ggsignif_0.6.0 ellipsis_0.3.1 rio_0.5.16 [5] fs_1.5.0 rstudioapi_0.11 farver_2.0.3 fansi_0.4.1 [9] xml2_1.3.2 leaps_3.1 mnormt_2.0.2 jsonlite_1.7.1 [13] broom_0.7.1 cluster_2.1.0 dbplyr_1.4.4 compiler_4.0.2 [17] httr_1.4.2 backports_1.1.10 assertthat_0.2.1 cli_2.0.2 [21] htmltools_0.5.0 tools_4.0.2 gtable_0.3.0 glue_1.4.2 [25] tinytex_0.27 Rcpp_1.0.5 carData_3.0-4 cellranger_1.1.0 [29] fracdiff_1.5-1 vctrs_0.3.4 urca_1.3-0 nlme_3.1-148 [33] lmtest_0.9-38 timeDate_3043.102 xfun_0.18 openxlsx_4.2.2 [37] rvest_0.3.6 lifecycle_0.2.0 rstatix_0.6.0 MASS_7.3-51.6 [41] scales_1.1.1 hms_0.5.3 parallel_4.0.2 RColorBrewer_1.1-2 [45] yaml_2.2.1 curl_4.3 reshape_0.8.8 stringi_1.5.3 [49] highr_0.8 tseries_0.10-47 zip_2.1.1 rlang_0.4.7 [53] pkgconfig_2.0.3 evaluate_0.14 lattice_0.20-41 htmlwidgets_1.5.2 [57] labeling_0.3 tidyselect_1.1.0 plyr_1.8.6 magrittr_1.5 [61] R6_2.4.1 generics_0.0.2 DBI_1.1.0 pillar_1.4.6 [65] haven_2.3.1 foreign_0.8-80 withr_2.3.0 scatterplot3d_0.3-41 [69] abind_1.4-5 nnet_7.3-14 modelr_0.1.8 crayon_1.3.4 [73] car_3.0-10 Quandl_2.10.0 tmvnsim_1.0-2 rmarkdown_2.4 [77] grid_4.0.2 data.table_1.13.0 blob_1.2.1 reprex_0.3.0 [81] digest_0.6.25 flashClust_1.01-2 munsell_0.5.0 quadprog_1.5-8
Please try the GitHub version:
install.packages("devtools") devtools::install_github("slowkow/ggrepel")
Summary
Using the code from the example homepage segment.linetype seems not to be recognized
Minimal code example
Here is the minimum amount of code needed to demonstrate the issue:
Here is an image of the output produced by the code:
IMAGE
Suggestions
This is my proposal for how to solve the issue.
Version information
Here is the output from
sessionInfo()
in my R session: