chartOptionsXAxis | R Documentation |
Chart
Set the title and style of the X Axis of a Chart
.
chartOptionsXAxis(
chart,
title = NULL,
numberStyle = NULL,
decimals = NULL,
thousandsSeparator = NULL
)
## S4 method for signature 'Chart'
chartOptionsXAxis(
chart,
title = NULL,
numberStyle = NULL,
decimals = NULL,
thousandsSeparator = NULL
)
chart |
|
title |
character. Title of the X 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 |
A Chart
object representing a SyncroSim chart or, if no arguments
other than the chart are provided, a data.frame of the current chart X Axis
settings.
## Not run:
# Open a chart object
myChart <- chart(myProject, chart = "My Chart")
# Set the chart X Axis title
myChart <- chartOptionsXAxis(myChart, title = "Year")
# Return a dataframe of the current X Axis settings
myChart <- chartOptionsXAxis(myChart)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.