Question: In R Studio - Use Library () to see the packages that are installed. Install R Forecast Package and ggplot2 Package by going to Tools

  1. In R Studio - Use Library () to see the packages that are installed.
  2. 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()

  1. Load Forecast Package by running library(Forecast)
  2. 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

  1. 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

  1. summary(iris$Sepal.Length)

  1. summary(iris) - to know the spread of data

  1. boxplot(iris$Sepal.Length)

  1. boxplot (iris$Sepal.Length, horizontal = TRUE)

  1. boxplot.stats (iris$Sepal.Length)

  1. boxplot(iris[1:4]) 4 Box plots of each column from 1 to 4

  1. hist(iris$Sepal.Length)

  1. hist(iris$Sepal.Length, main=Histogram of Sepal Length, xlab = Sepal length)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!