View source: R/plot_timeline.R
plot_timeline | R Documentation |
This function plots the timeline of the fires and the noise points.
plot_timeline(
result,
from = NULL,
to = NULL,
mainBreak = NULL,
minorBreak = NULL,
dateLabel = NULL
)
result |
|
from |
OPTIONAL. Date/Datetime/Numeric. Start time. The data type needs to be the same as the provided observed time. |
to |
OPTIONAL. Date/Datetime/Numeric. End time. The data type needs to be the same as the provided observed time. |
mainBreak |
OPTIONAL. Character/Numeric. A string/value giving the
difference between major breaks. If the
observed time is in date/datetime
format,
this value will be passed to
|
minorBreak |
OPTIONAL. Character/Numeric. A string/value giving the
difference between minor breaks. If the
observed time is in date/datetime
format,
this value will be passed to
|
dateLabel |
OPTIONAL. Character. A string giving the formatting
specification for the labels. If the
observed
time is in date/datetime format,
this value will be passed to
|
A ggplot
object. The plot of the timeline.
# Time consuming functions (>5 seconds)
# Get clustering results
result <- hotspot_cluster(hotspots,
lon = "lon",
lat = "lat",
obsTime = "obsTime",
activeTime = 24,
adjDist = 3000,
minPts = 4,
minTime = 3,
ignitionCenter = "mean",
timeUnit = "h",
timeStep = 1)
# Plot timeline
plot_timeline(result,
mainBreak = "1 week",
minorBreak = "1 day",
dateLabel = "%b %d")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.