Plotly不显示行

问题描述 投票:0回答:1

长子。 [R

  selectizeInput("ope4",label = "operation is :",choices = unique(dd1$operationtype),multiple = T, options = list(maxItems = 3, placeholder = 'Select operation'),selected = "Take Away")

server.R

 if (length(input$ope4) == 0) {
      print("Please select at least one operation")
    } else {
      ope_data <- data4()[data4()$operationtype == input$ope4, ]
      ggplot(ope_data) +
        geom_line(aes(x = Dates, y = tamount, by = operationtype, color = operationtype )) +
        labs(x = "Date", y = "Amount", title = "operation vie sales") +
        scale_colour_hue("clarity", l = 70, c = 150) +  theme(axis.text.x = element_text(angle=35, vjust=0.5)) 
    }
r ggplot2 shiny plotly
1个回答
0
投票

尝试在美学中添加'group = 1'。

© www.soinside.com 2019 - 2024. All rights reserved.