RPubs will retire in June 2027. Your existing documents will stay accessible through December 31, 2031
and Connect Cloud is the recommended home for new publishing. Read the blog post
gravatar

ephragetapiwa

Ephrage Tapiwa Rugara

Recently Published

Plot using par function
longer way to do a plot with more than one y value using the par function. by ephrage tapiwa rugara (ankara üniversitesi) > plot(x=coal$Year,y=coal$Value,type="l",col="blue",xlab="Year",ylab="Consumption",ylim =c(0,30) ) > par(new=TRUE) > plot(natgas$Year,natgas$Value,type="l",col="red",xlab = "Year",ylab = "Consumption",ylim= c(0,30)) > par(new=TRUE) > plot(nucl$Year,nucl$Value,type="l",col="green",xlab = "Year",ylab = "Consumption",ylim=c(0,30)) > par(new=TRUE) > plot(renew$Year,renew$Value,type="l",col="orange",xlab = "Year",ylab = "Consumption",ylim=c(0,30))