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

Rstudio为啥不出图? #68

Open
luffyye8670 opened this issue Sep 5, 2018 · 0 comments
Open

Rstudio为啥不出图? #68

luffyye8670 opened this issue Sep 5, 2018 · 0 comments

Comments

@luffyye8670
Copy link

请帮忙看下,RStudiod不显示图,代码如下

library(shiny)
library(shinydashboard)
library(recharts)

ui<-fluidPage(
box(eChartOutput("chart"),width = NULL)
)

server <- function(input, output,session) {
output$chart<-renderEChart({
df2 <- data.frame(
saleNum=c(10,20,30,40,50,60,70,15,25,35,45,55,65,75,25,35,45,55,65,75,85),
seller=c(rep("Yellow",7), rep("Red",7), rep("White",7)),
weekDay = c(rep(c("Mon","Tue","Wed","Thu","Fri","Sat","Sun"),3)),
stringsAsFactors =FALSE
)
eBar(dat= df2, xvar=~weekDay, yvar=~saleNum, series=~seller)
})
}

shinyApp(ui, server)

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

No branches or pull requests

1 participant