[R] Editable plot

IZHAK shabsogh ishaqbaba at yahoo.com
Thu Apr 30 09:03:45 CEST 2015


Hello,Kindly assist me on how to make the plot from the following programm to be editable 

x<-c(0.84,1.03,0.96)y<-c(1.30,1.46,1.48)z<-c(1.32,1.47,1.5)w<-c(0.07,0.07,0.07)r<-c(500,1000,2000)
# Graph cars using a y axis that ranges from 0 to 12plot(r,x, type="o", col="blue", ylim=c(0,1.5),lwd= 2, xlab = " Number of iteration",ylab=" Bias" )
# Graph trucks with red dashed line and square pointslines(r,y, type="o", pch=22, lty=2, col="red",lwd=2)lines(r,z, type="o", pch=22, lty=3, col="green",lwd=2)lines(r,w, type="o", pch=22, lty=4, col="forestgreen",lwd=2)
# Create a title with a red, bold/italic font#title(main="Estimated Bias for the optimal response ", col.main="red", font.main=4)
#legend("center", lty = 1:4, col = 1:4,       #legend = c("x","y", "z","w"))
text(1000, 0.15, "PM")text(1000, 1.10, "VM")text(1000, 1.52, "WMSE")text(1000, 1.40, "LT")

Thank youIshaq

	[[alternative HTML version deleted]]



More information about the R-help mailing list