chart {rsyncrosim} | R Documentation |
Create or open a chart
Description
Create or open a Chart
from a SyncroSim
Project
.
Usage
chart(ssimObject = NULL, chart = NULL, create = FALSE, summary = FALSE)
Arguments
ssimObject |
|
chart |
character or integer. If character, then will either open an
existing chart if |
create |
logical. Whether to create a new chart if the chart name given
already exists in the SyncroSim library. If |
summary |
logical. If |
Value
A Chart
object representing a SyncroSim chart
Examples
## Not run:
# Set the file path and name of the new SsimLibrary
myLibraryName <- file.path(tempdir(),"testlib")
# Set the SyncroSim Session, SsimLibrary, Project, and Scenario
mySession <- session()
myLibrary <- ssimLibrary(name = myLibraryName,
session = mySession,
packages = "stsim")
myProject <- project(myLibrary, project = "My Project")
myScenario <- scenario(myProject, scenario = "My Scenario")
# Create a new chart
myChart <- chart(myProject, chart = "New Chart")
## End(Not run)