Open soedr opened 8 years ago
I came here to mention this issue.
Took a quick look through ggplotly.R
and it looks like theme$plot.title$hjust
is never accessed within the input ggplot object. I see the # TODO: hjust/vjust?
comment within function make_label
, is that related to this issue?
Hello.
I've found the same problem. I'm trying to place the title within the plot are with
theme(plot.title = element_text(vjust = -15))
It works with ggplot but when feed it to ggplotly this options is just ignored.
geom_text(x, y, "text")
doesn't work either.
I think I have to use %>% layout(title="My Title")
But I can't figure out how to place it within the plot.
First off, thank you for an incredible set of packages!
I'm facing an issue where the ggplot2 title aesthetics are not translated through ggplotyl(); more precisely, the horizontal title adjustment
theme(plot.title = element_text(hjust = 0))
is ignored.Code below:
Is there another way to define the location of text elements? Thanks!