diff --git a/docs/404.html b/docs/404.html index 90a47b4..6a232f8 100644 --- a/docs/404.html +++ b/docs/404.html @@ -149,11 +149,11 @@
diff --git a/docs/LICENSE-text.html b/docs/LICENSE-text.html index 632bfe6..b5b6bf3 100644 --- a/docs/LICENSE-text.html +++ b/docs/LICENSE-text.html @@ -149,11 +149,11 @@ diff --git a/docs/articles/apexcharter.html b/docs/articles/apexcharter.html index c748b57..0a92de1 100644 --- a/docs/articles/apexcharter.html +++ b/docs/articles/apexcharter.html @@ -84,11 +84,11 @@ @@ -151,14 +151,14 @@ - -vignettes/apexcharter.Rmd
apexcharter.Rmd
Simple bar charts can be created with:
data("mpg") -n_manufac <- count(mpg, manufacturer) +n_manufac <- count(mpg, manufacturer) apex(data = n_manufac, type = "column", mapping = aes(x = manufacturer, y = n))
Flipping coordinates can be done by using type = "bar"
:
Flipping coordinates can be done by using type = "bar"
:
To create a dodge bar charts, use aesthetic fill
:
n_manufac_year <- count(mpg, manufacturer, year) + +To create a dodge bar charts, use aesthetic
+fill
:- -n_manufac_year <- count(mpg, manufacturer, year) apex(data = n_manufac_year, type = "column", mapping = aes(x = manufacturer, y = n, fill = year))For stacked bar charts, specify option
+ +stacked
inax_chart
:For stacked bar charts, specify option
- - + +stacked
inax_chart
:
To represent several lines, use a data.frame
in long format and the group
aesthetic:
To represent several lines, use a data.frame
in long format and the group
aesthetic:
data("economics_long") economics_long <- economics_long %>% group_by(variable) %>% - slice((n()-100):n()) + slice((n()-100):n()) apex(data = economics_long, type = "line", mapping = aes(x = date, y = value01, group = variable)) %>% ax_yaxis(decimalsInFloat = 2) # number of decimals to keep
Create area charts with type = "area"
:
Create area charts with type = "area"
: