Solved – Suitable graph to visualize the spread of data

I have some data like

A  2 A  4 A  76 B  8 B  13 .. .... 

Basically, what is the spread of A, B, etc.
What would be a suitable graph to visualize such information in R?

There are numerous possible displays, depending on what more specifically you want.

One example would be a boxplot for each group (A, B, …) (assuming there are enough values in each group to support one*):

boxplot(len~supp,data=ToothGrowth,horizontal=TRUE,boxwex=.7) 

boxp

But you might want to look at histograms, ecdfs, or a number of other possibilities

* Edit: from your later comments, it looks like there's enough data for boxplots.

Similar Posts:

Rate this post

Leave a Comment