| save_plotmap | R Documentation |
driveplot() as a standalone HTML fileSave a plot map created with driveplot() as a standalone HTML file
save_plotmap(plotmap, filepath)
plotmap |
The plot map to be saved. |
filepath |
The path for the HTML file to be created, e.g., "myplotmap.html". |
The file path (invisibly).
## Not run:
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")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.