l*********a 发帖数: 42 | 1 How can I improve my R plot (see code below) to publishing quality level (i.
e. as good as Tableau graphs or Excel/PPT graphs)?
Thanks!
#----------------total sales amt --------------------
par(bg="white")
plot(t$tot_sales_amt, type="n", axes=FALSE, ann=FALSE, ylim=c(0,1000000))
lines(t$tot_sales_amt, col="blue")
points(t$tot_sales_amt, pch=21, bg="lightcyan", cex=1.5)
axis(2, col.axis="dark blue")
axis(1, at=1:dim(t)[1],lab=paste(substring(t$dt,5,6), '-', substring(t$dt,7,
8), sep=''), col.axis="dark blue")
box()
title_name = 'Daily Sales Amount'
title(main=title_name, col.main="dark blue")
title(xlab="Reporting Date",ylab="Sales Amount", col.lab="dark blue") | l*******h 发帖数: 151 | 2 Maybe you can try ggplot2 and Lattice graphic packages in R. Those packages
can generate beautiful graphs. Let me know if you have any further question. |
|