View source: R/createHeatmap.R
createHeatmap | R Documentation |
This function creates a heatmap using highcharter.
createHeatmap(data, xText, yText, valueText, title, subTitle, xTitle, yTitle)
data |
This is the data source for the heatmap. |
xText |
This is the column name in the data of the x values in the heatmap. |
yText |
This is the column name in the data of the y values in the heatmap. |
valueText |
This is the column name in the data of the data values in the heatmap. |
title |
This is the title of the heatmap. |
subTitle |
This is the subtitle of the heatmap. |
xTitle |
This is the title of the x axis. |
yTitle |
This is the title of the y axis. |
output$heatmap <- highcharter::renderHighchart({
hc <- createHeatmap(dat,"dayOfWeek","hourOfDay","Value",
"Heatmap of Marginal Trips by Hour and Day",
"Heatmap values represent the marginal trips from one additional driver hour or rider session","Day of Week","Hour of the Day")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.