Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Read the dataset in loan.csv into R. Call the loaded data, loan. Make sure that you have the directory set to the correct location for
Read the dataset in loan.csv into R. Call the loaded data, loan. Make sure that you have the directory set to the correct location for the data.
Please plot the histogram and density of the loan_amnt using basic graphics.
Please plot the histogram and density of the loan_amnt and add the vertical line denoting the mean using ggplot2.
Please scatter plot of loan_amnt (y-axis) against annual_inc (x-axis) and add the trend line using basic graphics.
Please scatter plot of loan_amnt (y-axis) against annual_inc (x-axis) and add the trend line using ggplot2.
Please plot the barplot of term and grade on the same barplot using basic graphics
Please plot the barplot of term and grade on the same barplot using ggplot2
Please boxplot loan_amnt (y-axis) against term (x-axis) and save the graph in a file, loanterm.jpg, using basic graphics.
Please boxplot loan_amnt (y-axis) against term (x-axis) and save the graph in a file, loanterm.jpg, using ggplot2. Are there any differences in loan amount with respect to term?
very large file , i just need the R Script
the structure of the loan.cvs
ID -numers
loan amount
term
interst rate
grade - in alphabet
employment length
home owner (rent or morgage)
annual interst
verification
loan status ( fully paid or current)
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