Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CODING LANGUAGE - R!!! QUESTION 2: Write a plot-making function [5 points] Write a function called matrix.plot() that takes in a single input (called df),
CODING LANGUAGE - R!!!
QUESTION 2: Write a plot-making function [5 points] Write a function called matrix.plot() that takes in a single input (called df), that is an N m data frame containing numeric data. This function should produce as its output an m x m matrix of plots where: the diagonal plots contain histograms of the columns of df the upper triangle of plots are scatter plots between all pairs of columns of df the lower triangle of plots report the correlation coefficients between the pairs of columns of df all plots should be labelled with the headings provided in df QUESTION 2: Write a plot-making function [5 points] Write a function called matrix.plot() that takes in a single input (called df), that is an N m data frame containing numeric data. This function should produce as its output an m x m matrix of plots where: the diagonal plots contain histograms of the columns of df the upper triangle of plots are scatter plots between all pairs of columns of df the lower triangle of plots report the correlation coefficients between the pairs of columns of df all plots should be labelled with the headings provided in dfStep 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