diff --git a/docs/404.html b/docs/404.html index f821294..5fab550 100644 --- a/docs/404.html +++ b/docs/404.html @@ -149,11 +149,11 @@
@@ -184,6 +184,9 @@vignettes/apexcharter.Rmd
apexcharter.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 %>%
@@ -221,15 +224,15 @@
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"
:
Simple bar charts can be created with:
- -Color points according to a third variable:
+ +Color points according to a third variable:
- -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):
fruits <- data.frame(
name = c('Apples', 'Oranges', 'Bananas', 'Berries'),
@@ -277,8 +280,8 @@
)
apex(data = fruits, type = "radialBar", mapping = aes(x = name, y = value))
mtcars$model <- rownames(mtcars)
apex(data = head(mtcars), type = "radar", mapping = aes(x = model, y = qsec))
With a grouping variable:
+ +With a grouping variable:
# extremely complicated reshaping
new_mtcars <- reshape(
@@ -303,8 +306,8 @@
)
apex(data = new_mtcars, type = "radar", mapping = aes(x = model, y = value, group = time))