chartDisagg | R Documentation |
Chart
by a Y variableDisaggregates the Chart
by given filter column(s) in a Y
variable.
chartDisagg(chart, variable, addFilter = NULL, removeFilter = NULL)
## S4 method for signature 'Chart'
chartDisagg(chart, variable, addFilter = NULL, removeFilter = NULL)
chart |
|
variable |
character. The variable to disaggregate the Y axis by. |
addFilter |
character or character vector. Adds Y variable column(s) to disaggregate the chart by. |
removeFilter |
character or character vector. Removes Y variable column(s) from disaggregating the chart. |
A Chart
object representing a SyncroSim chart
## Not run:
# Create a chart object
myChart <- chart(myProject, chart = "New Chart")
# Set the chart type and data
myChart <- chartData(myChart, y = c("variable1", "variable2"),
timesteps = c(0,10), iterationType = "single", iteration = 1)
# Disaggregate the chart by a filter column
myChart <- chartDisagg(myChart, variable = "variable1",
addFilter=c("col1", "col2"))
# Remove a filter column from the chart disaggregation
myChart <- chartDisagg(myChart, variable = "variable1",
removeFilter="col1")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.