2

rpresenter ファイルを作成しました。コードを以下に示します。rPubs で公開すると、言葉が入ったスライドが表示されます。しかし、モーション チャートやその他のチャートは表示されず、次のように表示されます。

私はRStudioのドキュメントを読んでいました。チャートを正しく表示する方法を考えていました。ありがとうございます。

 Presentation On Datasets
 ========================================================
 author: Harry
 date: 8/27/2016
 autosize: true


 Selecting The Data
  ========================================================

 ### We will select the diamonds dataset available in package 'ggplot2'.       
 Lets look at the data.

 ```{r}
 library(ggplot2)
 head(diamonds)
 ```

 Summary Of Data
 ========================================================


  ### Lets view the summary of data

  ```{r}
  library(ggplot2)
  summary(diamonds)

   ```


   Charts
  ========================================================

  ### Lets display some charts.

   ```{r results = 'asis', comment = NA}
   library(rCharts)
   library(ggplot2)

   n1 <- nPlot(carat ~ cut , group = "color", data = diamonds[1:40,], type =   "multiBarChart")
  n1

  ```


  Plot
  =============================================================

  ### Plotting Chart from economics dataset

  ```{r results = 'asis', comment = NA}
  library(rCharts)
  data(economics, package = 'ggplot2')
  econ <- transform(economics, date = as.character(date))
  m1 <- mPlot(x = 'date', y = c('psavert', 'uempmed'), type = 'Line',data = econ)
  m1$set(pointSize = 0, lineWidth = 1)
  m1

  ```

 Plot
 ============================================================

   ### Lets plot some Geographical Data

   ```{r gvisMergeExample, results='asis', echo=FALSE}
   library(googleVis)
   Geo <- gvisGeoChart(Exports, locationvar='Country', colorvar='Profit',
                 options=list(height=300, width=350))
   Tbl <- gvisTable(Exports, options=list(height=300, width=200))
   plot(gvisMerge(Geo, Tbl, horizontal=TRUE))

   ```

   Plot
   =========================================

  ### Lets plot Fruit vs Year

  ```{r MotionChartExample, results='asis', tidy=FALSE}
  library(googleVis)
  M <- gvisMotionChart(Fruits, 'Fruit', 'Year', options=list(width=400,      height=350))
  plot(M)

  ```
4

0 に答える 0