Open the "R Documents" official website and search for graphics
https://www.rdocumentation.org
Example:
x = c(1,2,3,4)
y = c(1.5,2.5,3.5,4.5)
plot(x,y , type = 's', main = " Rehan Graph" ,
col = "red" , xlab = " X - axis", ylab = 'Y- Axis')
Output :
# Dealing with iris dataset
Example:
plot(iris , col = "red")
View(iris)
barplot(iris$'C-1', col = 'red' , iris$`C-2`, iris$`C-3`, horiz = TRUE)
Output :
Histogram Visualization
Histogram contains x-axis ( data values) & y- axis ( frequency)
Example:
hist(iris$'C-2', col = 'red')
Output :
You may also interested in:
An Introduction to language R
Tutorial # 1.Data Type & Variable Declaration
Tutorial # 2.Operators
Tutorial # 3.Vector & Element Access
Tutorial # 4.Matrix
Tutorial # 5.Data Frame
Tutorial # 2.Operators
Tutorial # 3.Vector & Element Access
Tutorial # 4.Matrix
Tutorial # 5.Data Frame
Tutorial # 6.Arrays
Tutorial # 7.Lists
Tutorial # 8.Factors
Tutorial # 9.Data import
Tutorial # 10.Machine Learning
Tutorial # 11.Visualization
Tutorial # 7.Lists
Tutorial # 8.Factors
Tutorial # 9.Data import
Tutorial # 10.Machine Learning
Tutorial # 11.Visualization
0 Comments