plot_density_2D | R Documentation |
Density plot in 2D, considering Start time and Connection duration as variables
plot_density_2D(
sessions,
bins = 15,
by = c("wday", "month", "year"),
start = getOption("evprof.start.hour"),
log = FALSE
)
sessions |
tibble, sessions data set in evprof standard format |
bins |
integer, parameter to pass to |
by |
variable to facet the plot. Character being "wday", "month" or "year", considering the week to start at wday=1. |
start |
integer, start hour in the x axis of the plot. |
log |
logical, whether to transform |
ggplot2 plot
library(dplyr)
california_ev_sessions %>%
sample_frac(0.05) %>%
plot_density_2D(by = "wday", start = 3, bins = 15, log = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.