Skip to content

Commit 2b20ee3

Browse files
committed
minor fixes R doc legend and pie charts
1 parent 4c14ba4 commit 2b20ee3

File tree

4 files changed

+3
-11
lines changed

4 files changed

+3
-11
lines changed

_posts/r/2015-07-30-legend.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ library(plyr)
244244
data <- spread(Orange, Tree, circumference)
245245
data <- rename(data, c("1" = "Tree1", "2" = "Tree2", "3" = "Tree3", "4" = "Tree4", "5" = "Tree5"))
246246
247-
p <- pplot_ly(data, x = ~age, y = ~Tree1, type = 'scatter', mode = 'lines',
247+
p <- plot_ly(data, x = ~age, y = ~Tree1, type = 'scatter', mode = 'lines',
248248
legendgroup = 'group1', name = 'Zone 1 - Tree 1') %>%
249249
add_trace(y = ~Tree2, legendgroup = 'group2', name = 'Zone 2 - Tree 1') %>%
250250
add_trace(y = ~Tree3, legendgroup = 'group1', name = 'Zone 1 - Tree 2') %>%

_posts/r/2015-07-30-legend.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -239,19 +239,13 @@ library(plyr)
239239
data <- spread(Orange, Tree, circumference)
240240
data <- rename(data, c("1" = "Tree1", "2" = "Tree2", "3" = "Tree3", "4" = "Tree4", "5" = "Tree5"))
241241

242-
p <- pplot_ly(data, x = ~age, y = ~Tree1, type = 'scatter', mode = 'lines',
242+
p <- plot_ly(data, x = ~age, y = ~Tree1, type = 'scatter', mode = 'lines',
243243
legendgroup = 'group1', name = 'Zone 1 - Tree 1') %>%
244244
add_trace(y = ~Tree2, legendgroup = 'group2', name = 'Zone 2 - Tree 1') %>%
245245
add_trace(y = ~Tree3, legendgroup = 'group1', name = 'Zone 1 - Tree 2') %>%
246246
add_trace(y = ~Tree4, legendgroup = 'group2', name = 'Zone 2 - Tree 2') %>%
247247
add_trace(y = ~Tree5, legendgroup = 'group1', name = 'Zone 1 - Tree 3')
248-
```
249248

250-
```
251-
## Error in eval(expr, envir, enclos): impossible de trouver la fonction "pplot_ly"
252-
```
253-
254-
```r
255249
# Create a shareable link to your chart
256250
# Set up API credentials: https://plot.ly/r/getting-started
257251
chart_link = plotly_POST(p, filename="legend/grouped")

_posts/r/2015-11-19-pie-charts.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ chart_link
6262

6363
### Styled Pie Chart
6464

65-
```{r}
65+
```{r, results = 'hide'}
6666
library(plotly)
6767
6868
USPersonalExpenditure <- data.frame("Categorie" = rownames(USPersonalExpenditure), USPersonalExpenditure)

_posts/r/2015-11-19-pie-charts.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@ chart_link
9393

9494
<iframe src="https://plot.ly/~RPlotBot/3829.embed" width="800" height="600" id="igraph" scrolling="no" seamless="seamless" frameBorder="0"> </iframe>
9595

96-
<iframe src="https://plot.ly/~RPlotBot/3829.embed" width="800" height="600" id="igraph" scrolling="no" seamless="seamless" frameBorder="0"> </iframe>
97-
9896
### Subplots
9997

10098

0 commit comments

Comments
 (0)