Question: My data is titled data2 and a summary screenshot is shown. I'd simply like a histogram showing the mean value of each variable. The x-axis

My data is titled "data2" and a summary screenshot is shown.

I'd simply like a histogram showing the mean value of each variable. The x-axis would be 1,2,3 where 1=variable 1 (clopidogrel), 2=variable 2 (mortality score), etc. The y-axis is 0 to the max mean from the data which is the height value. I guess I could set var1=mean(var1), var2= ...etc and plot these, but is there a faster process?

Code: hist(colMeans(data2),ylab=(0,max(mean(data2))) <---doesn't work

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!