From 33a1e823d043502c17ce0602d348f1698f8bb321 Mon Sep 17 00:00:00 2001 From: Nan Xiao Date: Tue, 19 Dec 2023 15:36:54 -0500 Subject: [PATCH] Add sections on horizontal scrolling and hiding filters --- vignettes/layout.Rmd | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/vignettes/layout.Rmd b/vignettes/layout.Rmd index 654669f..40c75b1 100644 --- a/vignettes/layout.Rmd +++ b/vignettes/layout.Rmd @@ -101,6 +101,12 @@ outdata |> ae_forestly(width = 1000) ``` +# Horizontal scrolling + +Set `ae_forestly(..., width = NULL)` to make the element scrollable horizontally. +This is particularly useful when embedding the plot in pages with responsive +design, using frameworks such as Bootstrap. + # Change variable listed in drill-down table Users can explore AE listing by clicking $\blacktriangleright$ of each row @@ -121,3 +127,16 @@ metadata |> format_ae_forestly() |> ae_forestly() ``` + +# Hide filters + +You can use simple CSS rules to hide the incidence rate filter element. +For example, in an R Markdown document, use: + +````{verbatim, lang="css"} +```{css, echo=FALSE} +#filter_subject { + display: none; +} +``` +````