Save a plot map created with driveplot() as a standalone HTML file
Source: R/save_plotmap.R
save_plotmap.RdSave a plot map created with driveplot() as a standalone HTML file
Examples
if (FALSE) { # \dontrun{
library(crosstalk)
data(drive7)
shared_drive <- SharedData$new(drive7)
myplotmap <- driveplot(
shareddata = shared_drive,
x = time_cst,
ys = c(speed_mph, gyro_heading, gps_heading),
colorvar = gyro_heading,
maplabel = time_cst,
colorpalette = "viridis",
fillopacity = 1,
xlabel = "Time",
ylabels = c(
"Speed (mph)", "Gyro Heading (degrees)",
"GPS Heading (degrees)"
),
showlegend = TRUE,
legendtitle = "Gyro Heading",
plottitle = "A drive with points colored by gyro heading",
height = "500px"
)
save_plotmap(plotmap = myplotmap, filepath = "myplotmap.html")
} # }