[R] Box Plot Question

Uwe Ligges ligges at statistik.uni-dortmund.de
Mon Mar 24 19:42:37 CET 2003


John Borders wrote:
> I would like to create 15 box plots from two sets of data.
> 
> Set1 - containts PayGrade, Min_Salary, Max_Salary  data for 15 pay grades
> Set2 - contains PayGrade, Actual_Min, Actual_Max, and Actual_Mean for the 15
> pay grades
> 
> I would like 15 box plots  (one for each paygrade) whose whiskers were the
> Min_Salary and Max_Salary data
> and whose 'box' was Actual_Min, Actual_Mean, Actual_Max

a) Use merge() to merge the data frames.

> in order to show -- for each of teh 15 grades -- the width of the
> 'theoretical' pay grade, and the distribution of actual salaries within each
> of the 15 grades.
> 
> Any suggestions?

b) Look how boxplot.default() calls bxp() for plotting.
You might want to call bxp() directly with an appropriate structured 
object (a list like that one boxplot.default() returns) as its argument.

Uwe Ligges

> Thank you for any help.
> 
> J Borders (novice user)
> 
> 	[[alternate HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help



More information about the R-help mailing list