Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In R Studio - Use Library () to see the packages that are installed. Install R Forecast Package and ggplot2 Package by going to Tools
- In R Studio - Use Library () to see the packages that are installed.
- Install R Forecast Package and ggplot2 Package by going to Tools and install from CRAN Repository
Show that Forecast Package and ggplot2 package is installed by using Library()
- Load Forecast Package by running library(Forecast)
- Explore the Iris Dataset in R
Library(datasets)
data(iris) - Importing the Iris dataset
str(iris) - Structure of the dataset will be displayed
head(iris) - Top few rows of the dataset
- mean(iris$Sepal.Length) - Mean value of Sepal Length
median(iris$Sepal.Length) -Median value
range(iris$Sepal.Length) - Range
var(iris$Sepal.Length) - Variance
sd(iris$Sepal.Length) - Standard deviation
- summary(iris$Sepal.Length)
- summary(iris) - to know the spread of data
- boxplot(iris$Sepal.Length)
- boxplot (iris$Sepal.Length, horizontal = TRUE)
- boxplot.stats (iris$Sepal.Length)
- boxplot(iris[1:4]) 4 Box plots of each column from 1 to 4
- hist(iris$Sepal.Length)
- hist(iris$Sepal.Length, main=Histogram of Sepal Length, xlab = Sepal length)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started