Skip to content

Commit

Permalink
Модификация под новый API Plot.ly
Browse files Browse the repository at this point in the history
  • Loading branch information
iMissile committed Feb 25, 2016
1 parent 6683f84 commit 9978347
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
Binary file added 41 plotly_test/.RData
Binary file not shown.
14 changes: 14 additions & 0 deletions 41 plotly_test/export_test.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
library(plotly)

Sys.setenv("plotly_username"="iMissile")
Sys.setenv("plotly_api_key"="g6c59jc0jq")


p <- plot_ly(midwest, x = percollege, color = state, type = "box")

p

# plotly_POST(p, filename = "r-docs/midwest-boxplots", world_readable=TRUE)
plotly_POST(p, filename = "r-docs/midwest-boxplots", fileopt = "overwrite", sharing="public")

plotly_POST(p, filename='privacy-secret', sharing='hidden')
2 changes: 2 additions & 0 deletions 41 plotly_test/go_R.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
rem "C:\Program Files\R\R-3.0.2\bin\Rscript.exe" myplot.R
"C:\Program Files\R\R-3.2.3\bin\Rscript.exe" export_test.R
13 changes: 13 additions & 0 deletions 41 plotly_test/plotly_test.Rproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Version: 1.0

RestoreWorkspace: Default
SaveWorkspace: Default
AlwaysSaveHistory: Default

EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 2
Encoding: UTF-8

RnwWeave: Sweave
LaTeX: pdfLaTeX

0 comments on commit 9978347

Please sign in to comment.