chartOptionsFormat | R Documentation |
Chart
Modifies the font style and size of various Chart
components.
chartOptionsFormat(
chart,
noDataAsZero = NULL,
showDataPoints = NULL,
showDataPointsOnly = NULL,
showPanelTitles = NULL,
showToolTips = NULL,
showNoDataPanels = NULL,
lineWidth = NULL
)
## S4 method for signature 'Chart'
chartOptionsFormat(
chart,
noDataAsZero = NULL,
showDataPoints = NULL,
showDataPointsOnly = NULL,
showPanelTitles = NULL,
showToolTips = NULL,
showNoDataPanels = NULL,
lineWidth = NULL
)
chart |
|
noDataAsZero |
logical. Determines whether NA, Null and No Data values
should be charted as zero. Default is |
showDataPoints |
logical. Determines whether each data point should be
displayed with a point (i.e., circle). Default is |
showDataPointsOnly |
logical. Determines whether only points should be
displayed (i.e., no line in the line charts). Default is |
showPanelTitles |
logical. Determines whether to show a title above each
panel. Default is |
showToolTips |
logical. Determines whether to show the tool tip when
hovering the cursor over a data point. Default is |
showNoDataPanels |
logical. Determines whether to show chart panels
with no data. Default is |
lineWidth |
integer. Sets the charts' line thickness. 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 format
settings.
## Not run:
# Open a chart object
myChart <- chart(myProject, chart = "My Chart")
# Set the format for the chart panels
myChart <- chartOptionsFormat(myChart, noDataAsZero = TRUE,
showDataPoints = FALSE,
showDataPointsOnly = FALSE,
showPanelTitles = TRUE,
showToolTips = TRUE,
showNoDataPanels = FALSE,
lineWidth = 1)
# Return a dataframe of the current font settings
myChart <- chartOptionsFormat(myChart)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.