Error message about username when using plotly r package offline

user3786999

I'm trying to begin using plotly for R, but I'm having trouble with an error about username. When I try to execute the following code...

test=ggplot(diamonds,aes(x=diamonds$carat,y=diamonds$price))+geom_point()
test2=plotly(test)
plotly(test)

...I get the error message:

Storing 'username' as the environment variable 'plotly_username'
Error in Sys.setenv(plotly_username = username) : 
  wrong length for argument

I thought plotly's R package was available for use without a username via htmlwidgets. As far as I can tell, I'm using the latest version of plotly, ggplot, and htmlwidgets. What am I doing wrong?

jchaykow

You have to use ggplotly()

So,

test <- ggplot(diamonds,aes(x = carat,y = price))+ geom_point()

ggplotly(test)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Error Message in Plotly (in R) about "markers"

Error message when installing xml2 R package

Suppress error message when using fitdist() from the fitdistrplus package

How can I go about removing the error message "Undefined Index" for $_POST["username"], when it will be undefined until the form is submitted?

Why am I receiving a "no scatter mode specified" error message when making a graph with Plotly in R?

plotly express plots automatically open new tabs when using plotly offline

AWS - Serverless - "message": "Internal server error" when deploying, but work offline

error_log message is truncated when using print_r

Error message with aggregate() when using my own function in R

icudt error while installing stringi package from r in linux offline

error message when trying to import a package

Error when using ''ward'' method with pvclust R package

Error when plotting correlation test using ggpubr package in R

Error when using SMA() function in quantmod package in R

Using "for" loops in R package and error message "Error in `[.data.frame`(, c("date", i)) : undefined columns selected"

Display Error message when connection or Invalid Username or Password in VBA

Plotly disappears when using jQuery in R Shiny

When trying to activate XML package, RStudio throws error about R version

Error message when using the function autocov_dist from spdep package

R testthat package: How can I see output from message() when using test_file()

Error in R using neuralnet package

Error using dplyr package in R

Error using R magick package

Using Package control with an offline repo

Confused about plotly online / offline / cufflinks and the different versions

Confusion about plotly offline and updating a graph in jupyter notebook

Facebook Error #100 when uploading Offline Conversions using Marketing API

Dunn test in R: error message about something being coerced to a factor

Package dependency error message when install octave on RedHat linux