我编写了以下代码,但是在Rstudio上运行它时,我得到以下代码 - >
**null device
1**
我该如何解决?
x <- c(21, 62, 10, 53)
labels <- c("London", "New York", "Singapore", "Mumbai")
png(file = "city_title_colours.jpg")
pie(x, labels, main = "City pie chart", col = rainbow(length(x)))
dev.off()