Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a code that contains the answers of the questions given below and save your file by using your name Name . R . Send
Write a code that contains the answers of the questions given below and save your file by using your
name NameR Send me the R file.
Add a comment line that contains your name, surname, student ID and department.
Draw a BoxandWhisker Plot by using iris dataset Petal length vs Species
Show the boxplot of each species at the same plot.
Label x and y axes. Give a title to the chart.
Show all the necessary information to build the box plots in a list.
Save your plot by using appropriate codes. The name of the file will be NameBoxPlot.pngie
SezaBoxPlot.png Width and height of the chart should be and respectively.
Draw a Histogram by using iris dataset Frequency vs Petal length
Set the color of the histogram as red.
Label x and y axes. Give a title to the chart.
Show all the necessary information to build the histogram in a list.
Save your plot by using appropriate codes. The name of the file will be NameHistogram.pngie
SezaHistogram.png Width and height of the chart should be and respectively.
Create a dataframe called Name.Iris ie Seza.Iris by assigning all the content in the iris dataset.
Create a file called Namecsvie Seza.csv by using writecsv command. The fill should contain
the data frame you created.
Use Readcsv command to assign the data in the Namecsv file to a dataframe named Name
Use str command to check the structure of the Name dataframe.
Use summary command to check the descriptive statistics of the Name dataframe.
Create education and test sets by using iris data set.
Use set.seed command to generate the same random numbers.
The sample size of the test set will be The remaining data will be at the education set.
The name of the test set will be Nametestie Seza.test
The name of the education set will be Nameeducationie Seza.education
Create a linear model by using iris data set.
Dependent variable will be Sepal Length.
All the other variables will be independent variables.
The name of the model will be Name.modelie Seza.model
Show the summary of the model.
Create a linear model by using iris data set.
Dependent variable will be Sepal Length.
All the other variables except species will be independent variables.
The name of the model will be Name.modelie Seza.model
Show the summary of the model.
Create a linear model by using iris data set.
Dependent variable will be Sepal Length. Sepal Width will be the independent variable.
The name of the model will be Name.modelie Seza.model
Show the summary of the model.
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