sp_title {SveltePlots} | R Documentation |
Set title for SveltePlots charts
Description
This function sets the title properties for SveltePlots charts, including text alignment, color, font size, font weight, and padding.
Usage
sp_title(
sp,
title = NULL,
text_align = "left",
color = "black",
font_size = 16,
font_weight = "bold",
custom_css = ""
)
Arguments
sp |
The SveltePlots object to modify. |
title |
The title text to be displayed. |
text_align |
Text alignment of the title ("left", "center", "right"; default: "left"). |
color |
Color of the title text (default: "black"). |
font_size |
Font size of the title text (default: 16). |
font_weight |
Font weight of the title text (default: "bold"). |
custom_css |
Some custom css for the title. |
Value
An object of class htmlwidget
representing the plot with an added title.
[Package SveltePlots version 0.1.0 Index]