我正在尝试用R绘制饼图。如何将以下饼图组合成一个图形?
data <- c(632,20,491,991,20)
names <- c("alpha","beta","gamma","delta","omega")
pie(data, names,col = c("red", "yellow", "blue", "green", "cyan"),
main="PIE CHART 1")
data <- c(37376,41770,5210,5005,3947)
names <- c("alpha","beta","gamma","delta","omega")
pie(data, names,col = c("red", "yellow", "blue", "green", "cyan"),
main="PIE CHART 2")
答案 0 :(得分:1)
par(mfrow=c(x,y)) # where x is number of rows and y is columns.
plot(...)
plot(...)
有关在一个图形窗口中绘制多个绘图的详细信息,请参阅:http://www.statmethods.net/advgraphs/layout.html