Question: Using Rstudio, generate the associated R outputs using these R commands: 1 . install.packages ( psych ) 2 . install.packages ( ggplot
Using Rstudio, generate the associated R outputs using these R commands:
install.packagespsych
install.packagesggplot
libraryreadxl
SalesDataset readexcelSalesDatasetxlsx
librarypsych
describeSalesDataset
libraryggplot
ggplotSalesDataset aesxSaleType, yQuantitySold, fillSaleType
geomboxplot
labstitle"Boxplot of QuantitySold by SaleType", x"SaleType", y"QuantitySold"
Themeplottitle elementtexthjust
ggplotSalesDataset aesxQuantitySold
geomhistogramcolor"purple", fill"yellow"
labstitle"Histogram of QuantitySold", x"QuantitySold", y"Count"
themeplottitle elementtexthjust
ggplotSalesDataset aesxQuantitySold, yTotalSales, colorSaleType
geompoint
labstitle"Scatterplot of Quantity and Sales", x"QuantitySold", y"TotalSales"
themeplottitle elementtexthjust
ggplotSalesDataset aesxQuantitySold, yTotalCosts, colorSalesRep
geompoint
labstitle"Scatterplot of Quantity and Costs", x"QuantitySold", y"TotalCosts"
themeplottitle elementtexthjust
model lmTotalSales ~ QuantitySold, dataSalesDataset
summarymodel
model lmTotalCosts ~ QuantitySold, dataSalesDataset
summarymodel
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
