CBSA
January 26, 2017, 11:52am
1
Hi there!
I totally love the ggploty package that allows to make ggplot2 grafics interactive. However, my ggplotly grafics have a somehow thicker line stroke that does not look so good.
For example, compare the following two pictures:
1.) Original plot with ggplot2:
2.) Interactive plot based on (1) with ggplotly:
Questions:
1.) Why is this the case?
2.) Can I fix it?
bcd
January 26, 2017, 4:40pm
2
Hey @CBSA ,
you can manipulate trace attributes in the plotly object by using style(p, ... )
. You can read about it and other ways to extend ggplotly()
here https://cpsievert.github.io/plotly_book/extending-ggplotly.html
1 Like
CBSA
January 30, 2017, 3:03pm
3
Thanks! I will have a look.
I have the same issue and am struggling to find examples of this - could you paste your code?