You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, I thought the function does not share the same philosophy you apply to the other hchart methods. In that sense, I tried to make it more like one of your shortcuts:
But after coming with this, I thought this was maybe too simple to add to your package. So what do you think? Should I add the code of hc_add_series_density in a pull request?
The text was updated successfully, but these errors were encountered:
The helper: hc_add_series_densityhere. Can we add in this function the lineif(is.numeric(x)) x <- density(x)?. I think it would be nice give a numeric object which I want to show as a density.
Then the generic function hchart.density <- function (object,..., area = FALSE) { hc_add_series_density(highcharts(), object, ...)}here
x <- rnorm(1000)
y <- rexp(1000)
hcdensity(x) %>%
hc_add_series_density(y)
# and
hcdensity(density(x)) %>% # not the correct usage but its possible.
hc_add_series_density(density(y))
# or
hchart(density(x)) %>%
hc_add_series_density(density(y))
Hey there @jbkunst!
I created the following function to get density plots from
density
objects:Which would make it simple to plot multiple
density
objects.However, I thought the function does not share the same philosophy you apply to the other hchart methods. In that sense, I tried to make it more like one of your shortcuts:
And the use would be more like this:
But after coming with this, I thought this was maybe too simple to add to your package. So what do you think? Should I add the code of
hc_add_series_density
in a pull request?The text was updated successfully, but these errors were encountered: