# Scatter plot of mtcars dataset
plot(mtcars$mpg, mtcars$disp, xlab = "MPG", ylab = "Displacement", main = "Scatter Plot of MPG vs Displacement")

# Histogram of iris dataset
hist(iris$Sepal.Length, xlab = "Sepal Length", ylab = "Frequency", main = "Histogram of Sepal Length in Iris Dataset", col = "skyblue", border = "black")

# Line plot of airquality dataset
plot(airquality$Day, airquality$Temp, xlab = "Day", ylab = "Temperature", main = "Line Plot of Daily Temperature by Day", type = "l")

# Box plot of mtcars dataset
boxplot(mpg ~ cyl, data = mtcars, xlab = "Number of Cylinders", ylab = "MPG", main = "Box Plot of MPG by Number of Cylinders", col = "lightgreen")

# Bar plot of iris dataset
barplot(table(iris$Species), main = "Bar Plot of Species in Iris Dataset", xlab = "Species", ylab = "Frequency", col = "skyblue")

# Scatter plot matrix of mtcars dataset
pairs(mtcars[, c("mpg", "disp", "hp", "wt")])

# Correlation matrix plot of iris dataset
correlation_matrix <- cor(iris[, 1:4])
image(correlation_matrix, main = "Correlation Matrix Plot of Iris Dataset")

# Pie chart of airquality dataset
mean_temp <- mean(airquality$Temp)
mean_wind <- mean(airquality$Wind)
pie(c(mean_temp, mean_wind), labels = c("Mean Temperature", "Mean Wind Speed"), main = "Pie Chart of Mean Temperature and Wind Speed", col = c("skyblue", "lightgreen"))
