小编I A*_*Lee的帖子

"闭合"类型的对象不是闪亮的子集.使用简单的RGL绘图功能

我正在使用rgl和shinyRGL包进行编码,试图通过让用户插入csv特定格式的文件来绘制3D线图.但是对象类型关闭错误不断出现.好像是因为找不到功能plot3d,或者我可能错了.

这是代码:

UI

library(shiny)
library(rgl)
library(shinyRGL)

# Define UI for application that draws a histogram
shinyUI(fluidPage(
  titlePanel("title panel"),

  sidebarLayout(
    sidebarPanel(
      helpText("Please select a CSV file with the correct format."),
      tags$hr(),
      fileInput("file","Choose file to upload",accept = c(
        'text/csv',
        'text/comma-separated-values',
        'text/tab-separated-values',
        'text/plain',
        '.csv',
        '.tsv',
        label = h3("File input"))
    ),
    tags$hr(),
    checkboxInput('header', 'Header', TRUE),

    actionButton("graph","PLOT!")
    ),


mainPanel(textOutput("text1"),
          webGLOutput("Aplot")))
)
)
Run Code Online (Sandbox Code Playgroud)

服务器

library(shiny)
library(rgl)
library(shinyRGL)

options(shiny.maxRequestSize = 9*1024^2)
shinyServer(
  function(input, output) {


    output$text1 <- renderText({
    paste("You …
Run Code Online (Sandbox Code Playgroud)

r rgl shiny

3
推荐指数
1
解决办法
1193
查看次数

标签 统计

r ×1

rgl ×1

shiny ×1