Skip to content
Back to formatted view

Raw Message

Message-ID: <4F32D1AA020000CB000AD842@med-webappgwia1.medicine.umaryland.edu>
Date: 2012-02-09T00:48:58Z
From: John Sorkin
Subject: x-axis label for boxplot
In-Reply-To: <CAK4FJ1AEmBf5gdYkYZTbRV2CeRMoo3TaKbH+ASzoxJbVem4=Qg@mail.gmail.com>

I am trying to produce three boxplots and label the x axis values:
xvalues, yvalues, zvalues.

My code is below. The labels are not below the three boxplots. If you could show me how to get the
labels below the columns I would be appreciative.
John

jdata<-data.frame(x = rnorm(100),y=rnorm(100,1),z=rnorm(100,-1),y=runif(100))

boxplot(jdata[,"x"],jdata[,"y"],jdata[,"z"],xlab=c("x values","yvalues","zvalues"))

John David Sorkin M.D., Ph.D.
Chief, Biostatistics and Informatics
University of Maryland School of Medicine Division of Gerontology
Baltimore VA Medical Center
10 North Greene Street
GRECC (BT/18/GR)
Baltimore, MD 21201-1524
(Phone) 410-605-7119
(Fax) 410-605-7913 (Please call phone number above prior to faxing)

Confidentiality Statement:
This email message, including any attachments, is for th...{{dropped:6}}