当前,我的光栅包有问题,试图将某些图像导入程序。它不接受参数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))))
答案 0 :(得分:0)
首先尝试一个简单的示例。 raster
方法根本没有这些参数。它们是plot
的参数。可能是由于括号放置错误。从这样简单的事情开始
f <- TLC_MS_files()[[1]]
r <- raster(f)
output$TLC_MS_pict.1 <- renderPlot(
plot(r, main="test")
)