chartOptionsLegend | R Documentation |
Chart
Modifies the legend settings for a Chart
.
chartOptionsLegend(
chart,
show = NULL,
showScenarioName = NULL,
showScenarioId = NULL,
showStageName = NULL,
showTimestamp = NULL
)
## S4 method for signature 'Chart'
chartOptionsLegend(
chart,
show = NULL,
showScenarioName = NULL,
showScenarioId = NULL,
showStageName = NULL,
showTimestamp = NULL
)
chart |
|
show |
logical. Whether to show the chart legend. Default is |
showScenarioName |
logical. Whether to show the scenario name in the
legend. Default is |
showScenarioId |
logical. Whether to show the scenario ID in the legend.
Default is |
showStageName |
logical. Determines whether to show the stage name
(i.e., transformer name) in the legend. Default is |
showTimestamp |
logical. Whether to show the timestamp of the scenario
run in the legend. Default is |
A Chart
object representing a SyncroSim chart or, if no arguments
other than the chart are provided, a data.frame of the current chart legend
settings.
## Not run:
# Open a chart object
myChart <- chart(myProject, chart = "My Chart")
# Remove the scenario ID and the timestamp from the chart
myChart <- chartOptionsLegend(myChart, showScenarioId = FALSE,
showTimestamp = FALSE)
# Hide the chart legend
myChart <- chartOptionsLegend(myChart, show = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.