v_boxplot | R Documentation |
Create a BoxPlot
v_boxplot(
vc,
mapping = NULL,
data = NULL,
name = NULL,
...,
outliers = TRUE,
args_outliers = NULL,
serie_id = NULL,
data_id = NULL
)
vc |
A chart initialized with |
mapping |
Default list of aesthetic mappings to use for chart. |
data |
Default dataset to use for chart. If not already
a |
name |
Name for the serie, only used for single serie (no |
... |
Arguments passed to JavaScript methods. |
outliers |
Display or not outliers. |
args_outliers |
Arguments passed to |
data_id , serie_id |
ID for the data/serie, can be used to further customize the chart with |
A vchart()
htmlwidget
object.
library(vchartr)
data("penguins", package = "palmerpenguins")
vchart(penguins) %>%
v_boxplot(aes(species, flipper_length_mm))
vchart(penguins) %>%
v_boxplot(aes(species, flipper_length_mm, color = sex))
data("mpg", package = "ggplot2")
vchart(mpg) %>%
v_boxplot(aes(as.character(year), hwy))
vchart(mpg) %>%
v_boxplot(aes(class, hwy))
vchart(mpg) %>%
v_boxplot(aes(class, hwy, color = as.character(year)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.