Reputation: 405
guys.
How to set a subtitle in dygraph? I tried several methods, but couldn't meet the result.
dygraph(df, main = "main", subtitle = "subtitle")
Thanks.
Upvotes: 1
Views: 715
Reputation: 1847
You can add line break to get two lines of the main
dygraph(xts(rnorm(200), seq(200) + Sys.time()),
main='First line <br> second line')
Then you can play with changing the font size of the second line, e.g. using <small>
dygraph(xts(rnorm(200), seq(200) + Sys.time()),
main='First line <br> <small>second line</small>')
Upvotes: 1