Set title for SveltePlots charts
sp_title.Rd
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.