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 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? Thank you for any help. J Borders (novice user) [[alternate HTML version deleted]]
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_Maxa) 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
If I understand you correctly, you have the five number summary (min, q1, median/mean, q3, max). Have a look at the function bxp() where you can supply the summary values as a list. -----Original Message----- From: John Borders [mailto:JBorders at qac.org] Sent: Tuesday, March 25, 2003 1:56 AM To: 'r-help at stat.math.ethz.ch' Subject: [R] Box Plot Question 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 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? 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