powered by
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 )
ggplot2 plot
tibble, sessions data set in evprof standard format.
integer, parameter to pass to ggplot2::stat_density_2d
ggplot2::stat_density_2d
variable to facet the plot. Character being "wday", "month" or "year", considering the week to start at wday=1.
integer, start hour in the x axis of the plot.
logical, whether to transform ConnectionStartDateTime and ConnectionHours variables to natural logarithmic scale (base = exp(1)).
ConnectionStartDateTime
ConnectionHours
exp(1)
library(dplyr) california_ev_sessions %>% sample_frac(0.05) %>% plot_density_2D(by = "wday", start = 3, bins = 15, log = FALSE)
Run the code above in your browser using DataLab