- 指定文件名以及文件尺寸
- 绘图命令
- 关闭打印过程
# print to pdf
pdf("MRGGraph.pdf",width=4,height=4)
pie(table( marital.status), main = "Marital status of people")
dev.off()
# print to pdf
pdf("MRGGraph.pdf",width=4,height=4)
pie(table( marital.status), main = "Marital status of people")
dev.off()