chartOptionsFont | R Documentation |
Chart
Modifies the font style and size of various Chart
components.
chartOptionsFont(
chart,
titleFont = NULL,
titleStyle = NULL,
titleSize = NULL,
panelFont = NULL,
panelStyle = NULL,
panelSize = NULL,
axisFont = NULL,
axisStyle = NULL,
axisSize = NULL,
legendFont = NULL,
legendStyle = NULL,
legendSize = NULL
)
## S4 method for signature 'Chart'
chartOptionsFont(
chart,
titleFont = NULL,
titleStyle = NULL,
titleSize = NULL,
panelFont = NULL,
panelStyle = NULL,
panelSize = NULL,
axisFont = NULL,
axisStyle = NULL,
axisSize = NULL,
legendFont = NULL,
legendStyle = NULL,
legendSize = NULL
)
chart |
|
titleFont |
character. Sets the font for the title of the
chart axes (e.g., "Microsoft Sans Serif, "Times New Roman", "Arial Narrow").
Default is |
titleStyle |
character. Sets the font style for the title. Values can be
"standard", "italic", "bold", or "bold/italic". Default is |
titleSize |
integer. Sets the font size for the title of the
chart axes. Default is |
panelFont |
character. Sets the font for the title of the chart
panels (e.g., "Microsoft Sans Serif, "Times New Roman", "Arial"). Default
is |
panelStyle |
character. Sets the font style for the chart panels. Values
can be "standard", "italic", "bold", or "bold/italic". Default is |
panelSize |
integer. Sets the font size for the chart panels. Default is
|
axisFont |
character. Sets the font for the title of the chart
panel axes (e.g., "Microsoft Sans Serif, "Times New Roman", "Arial"). Default
is |
axisStyle |
character. Sets the font style for the chart panel axes. Values
can be "standard", "italic", "bold", or "bold/italic". Default is |
axisSize |
integer. Sets the font size for the chart panel axes. Default
is |
legendFont |
character. Sets the font for the title of the
chart legend (e.g., "Microsoft Sans Serif, "Times New Roman", "Arial"). Default
is |
legendStyle |
character. Sets the font style for the chart legend. Values
can be "standard", "italic", "bold", or "bold/italic". Default is |
legendSize |
integer. Sets the font size for the chart legend. 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 font
settings.
## Not run:
# Open a chart object
myChart <- chart(myProject, chart = "My Chart")
# Set the font for the chart panels
myChart <- chartOptionsFont(myChart, panelFont = "Microsoft Sans Serif",
panelStyle = "bold/italic", panelSize = 8)
# Return a dataframe of the current font settings
myChart <- chartOptionsFont(myChart)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.