You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey plotly gang, I've just been trying out your product using the R API. It seems pretty useful. This isn't an issue as such, I was just looking for some help.
I've seen once you have produced your graph you can go to your workspace rename it to something more useful and pop it in a folder. Is there any way of doing this via your code in R? Otherwise i could see my workspace becoming a real mess very quickly.
I found something in the user guide i thought might help but it wouldn't run. Maybe i'm using it incorrectly or perhaps it doesn't do what i thought it would do at all. Any help would be appreciated.
#initialize acccess to the APIpy<- plotly()
#create plotbox<-ggplot(iris, aes(factor(Species), Petal.Width)) + geom_boxplot()
#push your plot through the APIp2<-py$ggplotly(box)
#how do you name and organise stuff? does this do itp3<-py$plotly(box, kwargs=list(filename="boxlabeltest", fileopt="overwrite"))
Errorin toJSON(unclass(x), container, collapse, ..., .level=.level+:errorinevaluatingtheargument'x'inselectingamethodforfunction'toJSON':Errorin unclass(x) :cannotunclassanenvironment
The text was updated successfully, but these errors were encountered:
Your last call just needs to be to ggplotly instead of plotly. You can also pass the kwargs on the initial call to name your plot. To create a folder, kwargs$filename can be a complete path, e.g.:
#initialize acccess to the APIpy<- plotly()
#create plotbox<-ggplot(iris, aes(factor(Species), Petal.Width)) + geom_boxplot()
#push your plot through the API, with a complete path as its filenamep2<-py$ggplotly(box, kwargs=list(filename="testfolder/subfolder/boxlabeltest"))
# another plotbox<-ggplot(iris, aes(factor(Species), Petal.Length)) + geom_boxplot()
# replace existing plot with the new onep3<-py$ggplotly(box, kwargs=list(filename="testfolder/subfolder/boxlabeltest", fileopt="overwrite"))
Hey plotly gang, I've just been trying out your product using the R API. It seems pretty useful. This isn't an issue as such, I was just looking for some help.
I've seen once you have produced your graph you can go to your workspace rename it to something more useful and pop it in a folder. Is there any way of doing this via your code in R? Otherwise i could see my workspace becoming a real mess very quickly.
I found something in the user guide i thought might help but it wouldn't run. Maybe i'm using it incorrectly or perhaps it doesn't do what i thought it would do at all. Any help would be appreciated.
The text was updated successfully, but these errors were encountered: