How to combine do.call() plot() and [removed])

前端 未结 3 849
滥情空心
滥情空心 2021-02-19 19:50

I am getting an error when I try and combine using expression with do.call and plot.

 x <- 1:10
 y <- x^1.5
         


        
3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-19 20:35

    do.call evaluates the parameters before running the function; try wrapping the expression in quote:

    p <- list(xlab=quote(expression(paste("Concentration (",mu,"M)"))))
    do.call("plot", c(y~x, p))
    

提交回复
热议问题