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
Copy file name to clipboardExpand all lines: _posts/ggplot2/getting-started/2015-08-10-getting-started_ggplot2_index.md
+15-12Lines changed: 15 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -13,34 +13,31 @@ language: ggplot2
13
13
# Plotly for R
14
14
15
15
Plotly is R package for creating interactive web-based graphs via [plotly](https://plot.ly/)'s JavaScript graphing library, `plotly.js`.
16
-
The `plotly` R libary contains a function `ggplotly` which will convert `ggplot2` figures into graphs drawn with `plotly.js`and saved in your online plotly account.
16
+
The `plotly` R libary contains a function `ggplotly` which will convert `ggplot2` figures into graphs drawn with `plotly.js`which can be saved to your online plotly account or rendered locally.
__plotly__ is not (yet) available on CRAN, but you can install it via [devtools](http://cran.r-project.org/web/packages/devtools/):
24
+
__plotly__ is now available on CRAN.
25
+
26
+
```r
27
+
install.packages("plotly")
28
+
```
29
+
30
+
To install the **dev** version use:
25
31
26
32
```r
27
-
install.packages("viridis") # dependency
28
33
install.packages("devtools")
29
34
devtools::install_github("ropensci/plotly")
30
35
```
31
36
32
-
33
37
#### Signup
34
38
35
39
If you don't already have a plotly account, either [signup online](https://plot.ly/ssu/) or use the `signup()` function (see the `help(signup)` page for more details).
36
40
37
-
Note you can check if you have a username and API key with:
38
-
39
-
```r
40
-
plotly:::verify("username")
41
-
plotly:::verify("api_key")
42
-
```
43
-
44
41
#### Credentials
45
42
46
43
Find your credentials [in our online settings](https://plot.ly/settings/api). Set them in your R session with:
@@ -79,7 +76,7 @@ p <- ggplot(data = d, aes(x = carat, y = price)) +
0 commit comments