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 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

@cortinah cortinah commented Mar 14, 2017

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 dmpe commented Aug 4, 2017

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

Copy link

@EricGoldsmith EricGoldsmith commented Nov 14, 2017

+1 for implementing this

Copy link

@kenahoo kenahoo commented Jan 2, 2018

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

Copy link

@mtruglio mtruglio commented Jan 11, 2018

Yep, that would be great.

Copy link

@CRG180 CRG180 commented Mar 3, 2018

yep, struggling with this issue

Copy link

@Nicktz Nicktz commented May 6, 2018

Any progress on this?

Copy link

@calstaff91 calstaff91 commented Jul 17, 2018


Copy link

@vllorens vllorens commented Oct 31, 2018

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

Copy link

@marshallpayne415 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

@everetr everetr commented Nov 5, 2018

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

Copy link

@marshallpayne415 marshallpayne415 commented Nov 5, 2018

@ropensci ropensci 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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
You can’t perform that action at this time.