R ggplotly打印的隐私保存到plotly帐户

R ggplotly打印的隐私保存到plotly帐户,r,ggplot2,privacy,plotly,R,Ggplot2,Privacy,Plotly,我对使用plotly相当陌生,但是当我以前使用它时,我创建的任何绘图都会发送到我的plotly帐户 现在,它们出现在我的RStudio查看器窗格中,但不显示在上的“我的图表”中。这没关系,只要我以这种方式创建的任何内容没有在我不知情的情况下公开展示 以下是一些代码示例: library(plotly) library(scales) py <- plotly(username="my_username", key="my_key") Sys.setenv(

我对使用
plotly
相当陌生,但是当我以前使用它时,我创建的任何绘图都会发送到我的
plotly
帐户

现在,它们出现在我的RStudio查看器窗格中,但不显示在
上的“我的图表”中。这没关系,只要我以这种方式创建的任何内容没有在我不知情的情况下公开展示

以下是一些代码示例:

    library(plotly)
    library(scales)

    py <- plotly(username="my_username", key="my_key")
    Sys.setenv("plotly_username" = "my_username")
    Sys.setenv("plotly_api_key" = "my_key")

    dates=seq(as.POSIXct("2015-01-01 00:00:00"), length.out = 1000, by="15 min")
    data=rnorm(1000,1,2)
    colour=c(rep("Blue",500),rep("Pink",300),rep("Blue",200))

    DF=data.frame(dates,data,colour)

    g4 <- ggplot(DF, aes(dates, data,colour=colour,group=1))+geom_line()+geom_point()+
      scale_x_datetime(labels = date_format("%d-%m-%y"))+
      ggtitle("Test Plotly")+theme(plot.title = element_text(face="bold"))+xlab("")

    ggplotly(g4)
library(plotly)
图书馆(比例尺)
py最近使用该框架进行了更新,现在完全在本地运行。因此,使用R包不需要plotly帐户。最近使用该框架进行了更新,现在完全在本地运行。因此,使用R包不需要plotly帐户。