diff --git a/docs/LICENSE-text.html b/docs/LICENSE-text.html index 135eded..a8fe6d1 100644 --- a/docs/LICENSE-text.html +++ b/docs/LICENSE-text.html @@ -60,7 +60,7 @@
diff --git a/docs/articles/index.html b/docs/articles/index.html index a9cbe25..34f466c 100644 --- a/docs/articles/index.html +++ b/docs/articles/index.html @@ -60,7 +60,7 @@ diff --git a/docs/articles/starting-with-apexcharts.html b/docs/articles/starting-with-apexcharts.html index 12bf394..86be19d 100644 --- a/docs/articles/starting-with-apexcharts.html +++ b/docs/articles/starting-with-apexcharts.html @@ -30,7 +30,7 @@ @@ -74,13 +74,13 @@ -vignettes/starting-with-apexcharts.Rmd
starting-with-apexcharts.Rmd
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
:
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
in ax_chart
:
For stacked bar charts, specify option stacked
in ax_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())
apex(data = economics_long, type = "line", mapping = aes(x = date, y = value01, group = variable))
Create area charts with type = "area"
:
Create area charts with type = "area"
:
Simple bar charts can be created with:
- -Color points according to a third variable:
+ +Color points according to a third variable:
apex(data = mtcars, type = "scatter", mapping = aes(x = wt, y = mpg, fill = cyl)) %>%
ax_xaxis(tickAmount = 5)
And change point size using z
aesthetics:
And change point size using z
aesthetics:
Simple radial charts can be created with (here we pass values directly in aes
, but you can use a data.frame
) :
Multi radial chart (more than one value):
+ +Multi radial chart (more than one value):
- - + +With a grouping variable:
+ +With a grouping variable:
- - + +