-
-
+
+
diff --git a/html_outputs/new_pages/ggplot_tips.html b/html_outputs/new_pages/ggplot_tips.html index f97d62f4..54208990 100644 --- a/html_outputs/new_pages/ggplot_tips.html +++ b/html_outputs/new_pages/ggplot_tips.html @@ -848,8 +848,8 @@
The first 50 rows of the linelist are displayed below.
This also works well with faceting functions - it allows the user to produce facet plots with the background data highlighted that doesn’t apply to the facet! Below we count cases by week and plot the epidemic curves by hospital (color =
and facet_wrap()
set to hospital
column).
# produce a histogram of all cases by age
+# produce a linegraph of all cases by age
%>%
linelist count(week = lubridate::floor_date(date_hospitalisation, "week"),
%>%
@@ -1671,7 +1671,8 @@ hospital) color = hospital)) +
theme_minimal() +
::gghighlight() + # highlight instances where the patient has died
- gghighlightfacet_wrap(~hospital) # make facets by outcome
+facet_wrap(~hospital) + # make facets by outcome
+ scale_x_date(labels = date_format("%m/%y"))