# Create data for the graph.x <- c(21, 62, 10, 53)labels <- c("London", "New York", "Singapore", "Mu
# Create data for the graph.x <- c(21, 62, 10, 53)labels <- c("London", "New York", "Singapore", "Mumbai")# Give the chart file a name.png(file = "F:/city.jpg")# Plot the chart.pie(x,labels)# Save the file.dev.off()
运行结果
在R Console上运行,也可以在ubuntu上运行