I have 2 issues using function ggplotly in R:
Question 1 What are the ways to keep R plotmath expressions while converting ggplot2 plots to plotly format using function ggplotly?
Now the expressions are converted to [object Object] as in this example below:
library(ggplot2)
library(plotly)
qplot(mpg, wt, data = mtcars) +
ggtitle(expression(bar(x) == sum(frac(x[i], n), i==1, n)))


Question 2
How to get rid of double labels in the legend of plotly graph and make them look like in ggplot2 graph? I.e. how to get 6 in stead of (6,6):
qplot(mpg, wt, data = mtcars, colour = as.factor(cyl), fill = as.factor(cyl))


I have 2 issues using function
ggplotlyin R:Question 1 What are the ways to keep
Rplotmath expressions while convertingggplot2plots toplotlyformat using functionggplotly?Now the expressions are converted to
[object Object]as in this example below:Question 2
How to get rid of double labels in the legend of
plotlygraph and make them look like inggplot2 graph? I.e. how to get6in stead of(6,6):