Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ggplot2 files #33

Merged
merged 8 commits into from
Mar 23, 2020
Merged

Add ggplot2 files #33

merged 8 commits into from
Mar 23, 2020

Conversation

jdamiba
Copy link
Contributor

@jdamiba jdamiba commented Feb 28, 2020

The purpose of this PR is to add some ggplot2 files to this repo. Also, I break off the online plotting sections of the ggplot2 getting started guide into its own doc.

knitr::opts_chunk$set(message = FALSE, warning=FALSE)
```

#### Introduction
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's see if this can live in getting-started? see if you can make the text flow nicely?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please take this content and move it into the getting-started page, and then add a redirect-from such that ggplot2/user-guide/ goes to ggplot2/getting-started

language: ggplot2
---

#### Initialization for Online Plotting
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one... I think we can rely on the existing R/Chart Studio page

- [ggplot2 examples](https://plot.ly/ggplot2)
- [Plotly's native R DSL](https://plot.ly/r)
- [Plotly's declarative graph description reference](https://plot.ly/r/reference)
- [Plotly with Shiny](https://plot.ly/r/shiny-tutorial)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's remove this line!

- [Plotly's declarative graph description reference](https://plot.ly/r/reference)
- [Plotly with Shiny](https://plot.ly/r/shiny-tutorial)
- [`plotly` R package on GitHub](https://github.com/ropensci/plotly)
- [Plotly graphs in other languages](https://plot.ly/api)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this line


Plotly is an R package for creating interactive web-based graphs via [plotly](https://plot.ly/)'s JavaScript graphing library, `plotly.js`.

The [plotly R package](https://github.com/ropensci/plotly) serializes ggplot2 figures into Plotly's <a target="_blank" href="http://help.plot.ly/json-chart-schema/">universal graph JSON</a>. `plotly::ggplotly` will crawl the ggplot2 figure, extract and translate all of the attributes of the ggplot2 figure into JSON (the colors, the axes, the chart type, etc), and draw the graph with plotly.js.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The [plotly R package](https://github.com/ropensci/plotly) serializes ggplot2 figures into Plotly's <a target="_blank" href="http://help.plot.ly/json-chart-schema/">universal graph JSON</a>. `plotly::ggplotly` will crawl the ggplot2 figure, extract and translate all of the attributes of the ggplot2 figure into JSON (the colors, the axes, the chart type, etc), and draw the graph with plotly.js.
The [plotly R package](https://github.com/ropensci/plotly) serializes ggplot2 figures into Plotly's <a target="_blank" href="http://plot.ly/r/reference/">universal graph JSON</a>. `plotly::ggplotly` will crawl the ggplot2 figure, extract and translate all of the attributes of the ggplot2 figure into JSON (the colors, the axes, the chart type, etc), and draw the graph with plotly.js.

@nicolaskruchten
Copy link
Contributor

💃 once comments addressed

@jdamiba jdamiba merged commit 9b785ab into master Mar 23, 2020
@jdamiba jdamiba deleted the add-ggplot2 branch March 23, 2020 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants