Transcription of Title stata.com graph box — Box plots
{{id}} {{{paragraph}}}
Box Box plotsDescriptionQuick startMenuSyntaxOptionsRemarks and examplesMethods and formulasReferencesAlso seeDescriptiongraph boxdraws vertical box plots . In a vertical box plot , theyaxis is numerical, and thexaxisis graph boxy1 y2, over(cat_var)y8ooy1,y2must be numeric;6statistics are shown ontheyaxis--4--cat_varmay be numericor string; it is shownon categoricalxaxis2oxfirst secondgroup groupThe encoding and the words used to describe the encoding areo <-outside valuesoadjacent line<-upper adjacent valuewhiskers<-75th percentile (upper hinge)box<-median<-25th percentile (lower hinge)whiskersadjacent line<-lower adjacent valueo <-outside valuegraph hboxdraws horizontal box plots . In a horizontal box plot , the numerical axis is still calledtheyaxis, and the categorical axis is still called thexaxis, butyis presented horizontally, box Box plots . graph hboxy1 y2, over(cat_var)x|ofirstgroup|same conceptual layoutas forgraph box:y1,y2appear onyaxiso|cat_varappears onxaxissecondgroup|oy2 4 6 8 Quick startBox plot ofv1graph box v1 Add boxes forv2andv3graph box v1 v2 v3As above, but as a horizontal box plotgraph hbox v1 v2 v3 Box plots forv1andv2at each level of categorical variablecatvar1graph box v1 v2, over(catvar1)Add a box showing the overall box plots ofv1andv2over all levels ofcatvar1graph box v1 v2, over(catvar1, total)Boxes for each level ofcatvar1grouped by levels ofcatvar2graph box v1, over(ca)
graph box— Box plots 3 Menu Graphics > Box plot Syntax graph box yvars if in weight, options graph hbox yvars if in weight, options where yvars is a varlist options Description
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}