chartOptionsYAxis | R Documentation |
Chart
Set the title and style of the Y axis of a Chart
.
chartOptionsYAxis(
chart,
title = NULL,
numberStyle = NULL,
decimals = NULL,
thousandsSeparator = NULL,
minZero = NULL,
sameScale = NULL,
fixedIntervals = NULL
)
## S4 method for signature 'Chart'
chartOptionsYAxis(
chart,
title = NULL,
numberStyle = NULL,
decimals = NULL,
thousandsSeparator = NULL,
minZero = NULL,
sameScale = NULL,
fixedIntervals = NULL
)
chart |
|
title |
character. Title of the Y axis. Default is |
numberStyle |
character. Sets the style for the axes labels. Options
include "number", scientific", or "currency". Default is |
decimals |
float. Sets the number of decimal places to be displayed in
the axes labels. Values can be between 0 and 8. Default is |
thousandsSeparator |
logical. Whether to use a thousand separator
(i.e., 1,000,000). Default is |
minZero |
logical. Whether the minimum value displayed in the Y axis should be zero. |
sameScale |
logical. Whether the Y axis scale should be consistent
across chart panels. Default is |
fixedIntervals |
logical. Whether the interval between Y axis labels
should be consistent across chart panels. 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 Y axis
settings.
## Not run:
# Open a chart object
myChart <- chart(myProject, chart = "My Chart")
# Set the chart Y axis title
myChart <- chartOptionsYAxis(myChart, title = "Year")
# Return a dataframe of the current Y axis settings
myChart <- chartOptionsYAxis(myChart)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.