Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You have to specify which library need to import depending on which kind of plot you are using. </p> <p>Here is a <a href="https://github.com/ramnathv/rCharts/tree/master/inst/libraries" rel="noreferrer">list</a> of all the available libraries from the description of rCharts package. </p> <pre><code>datatables dimple highcharts leaflet morris nvd3 polycharts rickshaw vega xcharts </code></pre> <p>Here is the demo code on rcharts website and I modified it to plot hplot.</p> <p>ui.R</p> <pre><code>require(rCharts) shinyUI(pageWithSidebar( headerPanel("rCharts: Interactive Charts from R using highcharts"), sidebarPanel( selectInput(inputId = "x", label = "Choose X", choices = c('SepalLength', 'SepalWidth', 'PetalLength', 'PetalWidth'), selected = "SepalLength"), selectInput(inputId = "y", label = "Choose Y", choices = c('SepalLength', 'SepalWidth', 'PetalLength', 'PetalWidth'), selected = "SepalWidth") ), mainPanel( showOutput("myChart", "highcharts") ) )) </code></pre> <p>server.R</p> <pre><code>require(rCharts) shinyServer(function(input, output) { output$myChart &lt;- renderChart({ names(iris) = gsub("\\.", "", names(iris)) # HPLOT p1 &lt;- hPlot(input$x, input$y, data = iris, type = c("line", "bubble", "scatter"), group = "Species", size = 1) # RPLOT #p1 &lt;- rPlot(input$x, input$y, data = iris, color = "Species", facet = "Species", type = 'point') p1$addParams(dom = 'myChart') return(p1) }) }) </code></pre> <p><img src="https://i.stack.imgur.com/kStjQ.jpg" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload