You are missing the name of the library
in showOutput
. If you install the dev
branch of rCharts
, then you can run the following code
library(shiny)
# devtools::install_github("rCharts", "ramnathv", ref = "dev")
library(rCharts)
runApp(list(
ui = pageWithSidebar(
headerPanel("rCharts and shiny"),
sidebarPanel(
),
mainPanel(
showOutput("myChart", "highcharts")
)),
server = function(input, output, session){
output$myChart <- renderChart2({
h1 <- hPlot(x = "Wr.Hnd", y = "NW.Hnd", data = MASS::survey,
type = c("line", "bubble", "scatter"), group = "Clap",
size = "Age"
)
return(h1)
})
}
))