chart title in plotly (R)
1
0
Entering edit mode
6.9 years ago

I'm absolutely new to Plotly (in R). I am trying to put a main-title on the chart (something like main() in R-core graphics or ggtitle() in ggplot), but am unable to find a quick way to do it. Could someone help me?

plotly R chart title • 21k views
ADD COMMENT
2
Entering edit mode
6.9 years ago
Martombo ★ 3.1k

you just need to set the option title in the function layout.

p = plot_ly( ... ) %>% layout(title="plot title")
ADD COMMENT
0
Entering edit mode

oh! thank you so much..

ADD REPLY

Login before adding your answer.

Traffic: 2083 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6