chartData | R Documentation |
Chart
type and axesSets the Chart
type and adds the variables to plot
in the line chart.
chartData(
chart,
type = "Line",
addX = NULL,
addY = NULL,
removeX = NULL,
removeY = NULL,
timesteps = NULL,
iterationType = "Mean",
iteration = 1
)
## S4 method for signature 'Chart'
chartData(
chart,
type = "Line",
addX = NULL,
addY = NULL,
removeX = NULL,
removeY = NULL,
timesteps = NULL,
iterationType = "Mean",
iteration = 1
)
chart |
|
type |
character. Chart type. Can be "Line" (Default) or "Column". |
addX |
character or character vector. X variable(s) to add to the chart.
If |
addY |
character or character vector. Y variable(s) to add to the chart.
If |
removeX |
character or character vector. X variable(s) to remove from
plot. If |
removeY |
character or character vector. Y variable(s) to remove from
plot. If |
timesteps |
integer vector. The range of timesteps to plot against
If |
iterationType |
character. How to display multiple iterations in the chart. Can be "Mean" (Default), "Single", or "All". |
iteration |
integer. If the |
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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.