Data Visualisation in R
Data Visualisation in R
AIM:
PROCEDURE:
1. data(iris)
2. head(iris, 4)
3. tail(iris)
dim(iris)
names(iris)
attributes(iris)
summary(iris)
iris[1:5,]
iris[,1:4]
10. If you want to explore the first 10 rows of a particular column, in this case, Sepal length
iris[1:10, "Sepal.Length"]
plot(iris2)
Histogram with hist() function:
sepal_length<-iris2$sepal.length
hist(sepal_length)
hist(sepal_length, main="Histogram of Sepal Length", xlab="Sepal Length", xlim=c(4,8),
col="blue", freq=FALSE
sepal_width<-iris2$sepal.width