powered by
Save iteration plots in PDF file
save_clustering_iterations( sessions, k, filename, it = 12, seeds = round(runif(it, min = 1, max = 1000)), plot_scale = 2, points_size = 0.25, mclust_tol = 1e-08, mclust_itmax = 10000, log = FALSE, start = getOption("evprof.start.hour") )
nothing, but a PDF file is saved in the path specified by parameter filename
filename
tibble, sessions data set in evprof standard format.
number of clusters
string defining the PDF output file path (with extension .pdf)
number of iterations
seed for each iteration
scale of each iteration plot for a good visualization in pdf file
integer, size of points in the scatter plot
tolerance parameter for clustering
maximum number of iterations
logical, whether to transform ConnectionStartDateTime and ConnectionHours variables to natural logarithmic scale (base = exp(1)).
ConnectionStartDateTime
ConnectionHours
exp(1)
integer, start hour in the x axis of the plot.
# \donttest{ temp_file <- file.path(tempdir(), "iteration.pdf") save_clustering_iterations(california_ev_sessions, k = 2, it = 4, filename = temp_file) # }
Run the code above in your browser using DataLab