R “形式论证”;“ylim”;由多个实际参数匹配使用光栅时出错

R “形式论证”;“ylim”;由多个实际参数匹配使用光栅时出错,r,shiny,R,Shiny,目前,我有一个问题,光栅包试图导入一些图像到一个程序。它不接受产生上述错误的参数ylim,但当我尝试使用ylim2或任何其他变体时,它说“ylim2”不是一个图形参数。所以我想知道ylim匹配的实际参数是什么 output$TLC_MS_pict.1 <- renderPlot({ par(mar=c(0,0,3,0)) raster(TLC_MS_files()[[1]],main=TLC_MS_files_name()[1],xlim=c(0,TLC_MS_x_width),ylim=

目前,我有一个问题,光栅包试图导入一些图像到一个程序。它不接受产生上述错误的参数ylim,但当我尝试使用ylim2或任何其他变体时,它说“ylim2”不是一个图形参数。所以我想知道ylim匹配的实际参数是什么

output$TLC_MS_pict.1 <- renderPlot({
par(mar=c(0,0,3,0))
raster(TLC_MS_files()[[1]],main=TLC_MS_files_name()[1],xlim=c(0,TLC_MS_x_width),ylim=c(0,TLC_MS_y_height))
})
output$TLC_MS_pict.1.zoom <- renderPlot({
par(mar=c(0,0,3,0))
raster(TLC_MS_files()[[1]],main=TLC_MS_files_name()[1],xlim=TLC_MS_zoom$x,ylim=TLC_MS_zoom$y)
if(!is.null(TLC_MS_coord$x)){
text(x=TLC_MS_coord$x*10,y=TLC_MS_coord$y*10-10,label=seq(length(TLC_MS_coord$x)),col=input$TLC_MS_color,pos = 3,cex=0.5)
symbols(x=TLC_MS_coord$x*10,y=TLC_MS_coord$y*10,fg=input$TLC_MS_color,inches = F,add = T,rectangles = cbind(rep(4*10,length(TLC_MS_coord$x)),rep(2*10,length(TLC_MS_coord$x))))

output$TLC_MS_pict.1首先尝试一个简单的示例。光栅
方法根本没有这些参数;它们是
绘图的参数。也许这是因为括号放错了地方。从这样简单的事情开始

f <- TLC_MS_files()[[1]]
r <- raster(f)
output$TLC_MS_pict.1 <- renderPlot(
      plot(r, main="test")
)

f首先尝试一个简单的例子。光栅
方法根本没有这些参数;它们是
绘图的参数。也许这是因为括号放错了地方。从这样简单的事情开始

f <- TLC_MS_files()[[1]]
r <- raster(f)
output$TLC_MS_pict.1 <- renderPlot(
      plot(r, main="test")
)
f