Skip to content

Commit 7ddb02b

Browse files
author
Joseph Damiba
committed
update getting-started.md
1 parent 4dfc94a commit 7ddb02b

File tree

2 files changed

+23
-128
lines changed

2 files changed

+23
-128
lines changed

r/2015-07-30-getting-started.Rmd

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: Getting Started with Plotly
33
permalink: r/getting-started/
4-
description: Get started with Plotly's R graphing library.
4+
description: How to get started making charts with Plotly's R graphing library.
55
page_type: example_index
66
layout: base
77
language: r
@@ -16,37 +16,48 @@ knitr::opts_chunk$set(message = FALSE, warning=FALSE)
1616

1717
# Getting Started with Plotly for R
1818

19-
`plotly` is an R package for creating interactive web-based graphs via the open source JavaScript graphing library [plotly.js](http://plot.ly/javascript).
20-
As of version 2.0 (November 17, 2015), Plotly graphs are rendered *locally* through the [htmlwidgets](http://www.htmlwidgets.org/) framework.
19+
[`plotly`](https://github.com/ropensci/plotly) is an R package for creating interactive web-based graphs via the open source JavaScript graphing library [`plotly.js`](http://plot.ly/javascript).
2120

21+
As of version 2.0 (November 17, 2015), graphs created with the `plotly` R package are rendered *locally* through the [`htmlwidgets`](http://www.htmlwidgets.org/) framework.
2222

23-
#### Installation
23+
## Installation
2424

25-
[`plotly`](https://cran.r-project.org/web/packages/plotly/index.html) is now on [CRAN](https://cran.r-project.org/!
25+
### Download from CRAN
26+
27+
Use the `install.package()` function to install the [`plotly R package`](https://cran.r-project.org/web/packages/plotly/index.html) from [CRAN](https://cran.r-project.org/!
2628

2729
```r
2830
install.packages("plotly")
2931
```
3032

31-
Or install the latest development version (on GitHub) via the devtools R package:
33+
### Download from GitHub
34+
35+
Alternatively, you can install the latest development version of `plotly` from GitHub via the [`devtools`](https://cran.r-project.org/web/packages/devtools/index.html) R package:
3236

3337
```r
3438
devtools::install_github("ropensci/plotly")
3539
```
3640

37-
<br>
38-
RStudio users should download the latest [RStudio release](https://www.rstudio.com/products/rstudio/download/) for compatibility with htmlwidgets.
41+
### Note For `RStudio` Users
42+
43+
`RStudio` users should ensure that they are using the latest [RStudio release](https://www.rstudio.com/products/rstudio/download/) in order to ensure compatibility with the `htmlwidgets` R package.
3944

40-
#### Initialization for Offline Plotting
45+
## Rendering Charts
4146

42-
By default, the `plotly` R package runs locally in your web browser or in the R Studio viewer.
47+
By default, the `plotly` R package runs locally in your web browser or in the ` viewer.
4348

4449
```{r}
4550
library(plotly)
4651
p <- plot_ly(midwest, x = ~percollege, color = ~state, type = "box")
4752
p
4853
```
4954

50-
Simply printing the plot object will render the chart locally in your web browser or in the R Studio viewer.
55+
Simply printing the plot object will render the chart locally in your web browser or in the `RStudio` viewer.
56+
57+
Graphs created with the `plotly` R package are interactive!
58+
59+
Click on legend entries to hide/show traces, click-and-drag on the chart to zoom, double-click to autoscale, shift-and-drag to pan.
60+
61+
## Next Steps
5162

52-
Graphs created with the `plotly` R package are interactive. Click on legend entries to toggle traces, click-and-drag on the chart to zoom, double-click to autoscale, shift-and-drag to pan.
63+
Once you have installed the `plotly` R package, learn more about the [fundamentals of making charts](https://plot.ly/r/plotly-fundamentals/) and start making [basic charts](https://plot.ly/r/basic-charts/).

r/2020-01-16-getting-started-with-chart-studio.Rmd

Lines changed: 0 additions & 116 deletions
This file was deleted.

0 commit comments

Comments
 (0)