Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for captions and subtitles #799

geponce opened this issue Nov 17, 2016 · 12 comments

Add support for captions and subtitles #799

geponce opened this issue Nov 17, 2016 · 12 comments


Copy link

geponce commented Nov 17, 2016

This example shows the difference between ggplot and ggplotly objects regarding the use of "labs".
Source: R for Data Science

p<-ggplot(mpg, aes(displ, hwy)) +
  geom_point(aes(color = class)) +
  geom_smooth(se = FALSE) +
    title = "Fuel efficiency generally decreases with engine size",
    subtitle = "Two seaters (sports cars) are an exception because of their light weight",
    caption = "Data from"
p  # This is ok, a ggplot2 object
g <- ggplotly(p)
g  #  "labs()" Just showing title (centered) and  subtilte & caption are not even showing up

labs() OK

labs() not ok

@cpsievert cpsievert changed the title ggplot "labs()" not working properly with ggplotly Add support for captions and subtitles Nov 30, 2016
Copy link

Thank you all, implementing this enhancement would be very much appreciated. Having important info about a chart (subtitles and captions) flow through to ggplotly is likely very important to most users.

Copy link

dmpe commented Aug 4, 2017

This would be a major win if implemented @cpsievert :) 💯

Copy link

+1 for implementing this

Copy link

kenahoo commented Jan 2, 2018

Just noticed this behavior too - would be great to get this working.

Copy link

Yep, that would be great.

Copy link

CRG180 commented Mar 3, 2018

yep, struggling with this issue

Copy link

Nicktz commented May 6, 2018

Any progress on this?

Copy link


Copy link

+1 for this, is there any progress? thank you!

Copy link

marshallpayne415 commented Nov 5, 2018

Would love this functionality. Anything that keeps the ggplot -> plotly conversion as consistent as possible is a plus IMO.

Copy link

I'm following this more closely than my local ballot measure tbh

Copy link

marshallpayne415 commented Nov 5, 2018 via email

@plotly plotly locked and limited conversation to collaborators Nov 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet

No branches or pull requests