嗨,我试图在R中创建一个温度计图,我找不到任何温度计图的例子。有人能告诉我如何在R中实现这一点吗?
此图表将用于显示在活动期间筹集的资金数额。最好举个例子。
发布于 2015-05-16 10:49:57
看看?symbols
# fundraising objective
z <- 1000
# amount gathered
y <- 600
symbols(1, thermometers = cbind(.5, 1, y/z), fg = 2,
xlab = NA, ylab = NA, axes = F, main = "Fundraising event")
text(1, paste0(y, "$", " / ", z, "$"), pos = 2, offset = 3)
text(1, paste0(y/z*100, "%"), pos = 1, offset = 3)

https://stackoverflow.com/questions/30273048
复制相似问题