Question: 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

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 df

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!