I'm trying to use the legend
function in R. I want the label to read $\\alpha = 1, \\beta = 2$, so I tried using
legend("topleft", c(expression(alpha = 1, beta = 2)))
But that did not do the trick. Any advice?
What if I wanted my label to read $Gamma(\\alpha = 1, \\beta = 2)$? I tried
legend("topleft", c(paste("Gamma( ", expression(alpha = 1, beta = 2))))
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.