[R] combining data from different datasets
Steven McKinney
smckinney at bccrc.ca
Sat Oct 25 03:32:33 CEST 2008
If you are using regular R graphs
(i.e. not lattice or other library
graphics) try setting the margins
with the mar argument to par()
e.g.
par(mar = c(5, 10, 5, 1))
The four numbers specify the amount
of margin room on the bottom, left, top, right
respectively. Set the left margin value large
enough to give your labels enough room.
HTH
Steven McKinney
Statistician
Molecular Oncology and Breast Cancer Program
British Columbia Cancer Research Centre
email: smckinney +at+ bccrc +dot+ ca
tel: 604-675-8000 x7561
BCCRC
Molecular Oncology
675 West 10th Ave, Floor 4
Vancouver B.C.
V5Z 1L3
Canada
-----Original Message-----
From: r-help-bounces at r-project.org on behalf of Dr Eberhard W Lisse
Sent: Fri 10/24/2008 2:44 PM
To: R-help Mailing List
Cc: Dr Eberhard W Lisse
Subject: Re: [R] combining data from different datasets
It's Complicated® :-)-O
I pull the data from a postgresql table, but I am getting
there, thank you the help.
Another question, I am barplotting the continents horizontally,
ie the more participants the lrger the bars are. I have managed
the make the labels (names of the nontinents) to be horizontally
but the longer ones (North and South America) flow off the left
side (right justified).
So, how do I make the plot smaller, and move it to the right so
that the complete names appear? I can make the plot smaller in
inches but that doesn't scale if I enlarge the window.
Pointers to read will be fine, but so far I haven't found it :-)-O
el
On 24 Oct 2008, at 18:24 , Gabor Grothendieck wrote:
> On Fri, Oct 24, 2008 at 11:37 AM, Dr Eberhard W Lisse <el at lisse.na>
> wrote:
>>
>> This looks very cool.
>>
>> But I must still make a plan with regards to country = "NA" (Namibia)
>> or continent = "NA" (North America)
>>
>> But there are the vignettes.
>>
>> el
>>
>
> NA and "NA" are not the same:
>
>> DF <- data.frame(x = c("a", "NA", NA))
>> DF
> x
> 1 a
> 2 NA
> 3 <NA>
>>
>> is.na(NA)
> [1] TRUE
>> is.na("NA")
> [1] FALSE
>
--
Dr. Eberhard W. Lisse \ / Obstetrician & Gynaecologist (Saar)
el at lisse.NA el108-ARIN / * | Telephone: +264 81 124 6733 (cell)
PO Box 8421 \ / Please send DNS/NA-NiC related e-mail
Bachbrecht, Namibia ;____/ to dns-admin at na-nic.com.na
______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list