Learn R Programming

highcharter (version 0.4.0)

hcdensity: Shorcut to create a density plot

Description

Shorcut to create a density plot

Usage

hcdensity(x, area = FALSE, ...)
hc_add_series_density(hc, x, area = FALSE, ...)

Arguments

x
A numeric vector
area
A boolean value to show or not the area
...
Aditional shared arguments for the data series (http://api.highcharts.com/highcharts#series)
hc
A highchart htmlwidget object.

Examples

Run this code

highchart() %>%
  hc_add_series_density(rnorm(1000)) %>%
  hc_add_series_density(rexp(1000), area = TRUE)
 

Run the code above in your browser using DataLab