In this video we will learn about plot() function in R.
https://techstats.in/blogs/
Code is below:
plot() function
x= c(10,20,30,40,50,60)
y = c(150,250,350,400,500,600)
plot(x,y)
#Now we will add names to our plot and both the axis
plot(x,y,main = "Plot of X and Y Axis for Data Analysis",xlab = "X axis analysis",ylab = "Y axis analysis")
#If you want to change the shape/size/color of points being plotted.
plot(x,y,main = "Title of my Graph", xlab = "X axis data" , ylab = "Y axis data",lwd = 2,pch=1,cex=1,col="red")
#
#Change the background color of the graph
We will use par() which means parameter
par(bg="yellow")
plot(x,y,main = "Title of my Graph", xlab = "X axis data" , ylab = "Y axis data",lwd = 2,pch=1,cex=,col="blue")
NOw we want to connect all the points in the plot.
x= c(10,20,30,40,50)
y = c(100,200,300,400,500)
par(bg="white")
plot(x,y,main = "Title of my Graph", xlab = "X axis data" , ylab = "Y axis data",lwd = 2,col="blue")
lines(x,y,lwd=3,col="yellow")
Auf dieser Seite können Sie das Online-Video plot() function in R| R tutorial 17 | R programming mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Learn2Code 18 September 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 33 Mal angesehen und es wurde von 2 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!