[R] producing histogram-like plot

2011-03-29 Thread Karin Lagesen
which plot type to use. Thanks in advance! Karin -- Karin Lagesen, Ph.D. Centre for Ecological and Evolutionary Synthesis (CEES) University of Oslo, Dept. of Biology P.O. Box 1066 Blindern 0316 Oslo, Norway Ph. +47 22844132 Fax. +47 22854001 Email karin.lage...@bio.uio.no http://folk.uio.no

[R] plotting histograms/density plots in a triangular layout?

2010-11-10 Thread Karin Lagesen
where the Xes represent where I want plots, and the 1,2,3 represent the legends. I have seen similar plots done by R, so I know it is possible, but the question is how :D TIA, Karin -- Karin Lagesen, Ph.D. Centre for Ecological and Evolutionary Synthesis (CEES) University of Oslo, Dept. of

[R] transparent concentric circles

2010-02-09 Thread Karin Lagesen
circle (which would be the one containing the number of characteristics shared by all four). Can somebody point me to what I can use to do this? Thanks! Karin -- Karin Lagesen, PhD __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] performing function on data frame

2009-04-16 Thread Karin Lagesen
ment. I.e: I want to create a new data frame from the old data frame, where each element in the new data frame is newDF[i,j] = oldDF[i,j] - mean(d[,j]) / sddev(d[,j]) I could, I think, iterate like this over the data frame, but I keep thinking that one of the apply functions should be employed

[R] performing function on data frame

2009-04-15 Thread Karin Lagesen
- mean(column y)/stddev(column y)). Thanks! -- Karin Lagesen, Ph.D. karin.lage...@medisin.uio.no http://folk.uio.no/karinlag __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-proj

[R] xyplot key issue - line colors

2008-08-05 Thread Karin Lagesen
n something about superposing lines on top of this somehow, but I couldn't figure out how to do it. Thanks! Karin -- Karin Lagesen, PhD student [EMAIL PROTECTED] http://folk.uio.no/karinlag __ R-help@r-project.org mailing list https://stat.ethz.ch/m

[R] conversion of data for use within barchart

2008-07-02 Thread Karin Lagesen
, so I hope somebody understands what I want! Thanks! Karin -- Karin Lagesen, PhD student [EMAIL PROTECTED] http://folk.uio.no/karinlag __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

[R] xyplot and separate abline per plot

2008-06-27 Thread Karin Lagesen
alues I want plotted in each plot. I hope I am able to convey what I want:) Thanks in advance, karin -- Karin Lagesen, PhD student [EMAIL PROTECTED] http://folk.uio.no/karinlag __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/

Re: [R] xyplot questions - axis and plotting two things in same panel

2008-06-26 Thread Karin Lagesen
-Original Message- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On >> Behalf Of Karin Lagesen >> Sent: Wednesday, June 25, 2008 2:13 AM >> To: r-help@r-project.org >> Subject: [R] xyplot questions - axis and plotting two things in same panel > &g

[R] xyplot questions - axis and plotting two things in same panel

2008-06-25 Thread Karin Lagesen
my data set that really breaks everything. Thanks for your help! Karin -- Karin Lagesen, PhD student [EMAIL PROTECTED] http://folk.uio.no/karinlag __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the po

[R] using the stepfun to plot histogram outline.

2008-06-21 Thread Karin Lagesen
that the data I have is on the same format as testdata above is. Thanks for your help! Karin -- Karin Lagesen, PhD student [EMAIL PROTECTED] http://folk.uio.no/karinlag __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

[R] vector comparison

2008-06-05 Thread Karin Lagesen
I know this is fairly basic, but I must have somehow missed it in the manuals. I have two vectors, often of unequal length. I would like to compare them for identity. Order of elements do not matter, but they should contain the same. I.e: I want this kind of comparison: > if (1==1) show("yes")

[R] figuring out the results from hclust

2008-05-31 Thread Karin Lagesen
would however like to not examine all of the data I have by hand:) Could any of you point me to what I need to do to get at this data? I have tried to examine the merge data in both cases, but I am coming up short. Thanks! Karin -- Karin Lagesen, PhD student [EMAIL PROTECTED] http://fo

[R] deconvoluting hclust objects

2008-05-22 Thread Karin Lagesen
t at the sizes of the subtrees. I know I can use cutree to get at the cut, but I cannot see anything systematic in which group becomes group no 1 and so forth. The results I want would in this example be: 236 8.5771948 1.7894737 Any hints for me? Thanks! Karin -- Karin Lagesen, P

[R] problems with data frames, factors and lists

2008-05-21 Thread Karin Lagesen
factor level, NAs generated Now, this is a pain in the neck. How can I merge these lists to the data frame and still have the value $twogrp as a factor? Thanks, and I hope my code makes some sense! Karin -- Karin Lagesen, PhD student [EMAIL PROTECTED] http://folk.uio.no/karinlag _

[R] cloud plot has white(transparent?) background

2008-04-22 Thread Karin Lagesen
nd that makes things easier to see. Mine comes out with a white, potentially transparent background and also the point colors have changed. How do I get the nice gray color back? Thanks! Karin -- Karin Lagesen, PhD student [EMAIL PROTECTED] http://

[R] adding bwplot to existing bwplot

2008-03-27 Thread Karin Lagesen
bwplot(no_clust~type|phylum, data = operonthings) and bwplot(no_seqs~type|phylum, data = operonthings) Any thoughts on how to do this? Thanks! Karin -- Karin Lagesen, PhD student [EMAIL PROTECTED] http://folk.uio.no/karinlag __ R-help@r-project.org mailin

[R] hclust graphics - plotting many points

2008-03-10 Thread Karin Lagesen
ing like I get in the x11() window which I can also store and potentially show other people. Thanks! Karin -- Karin Lagesen, PhD student [EMAIL PROTECTED] http://folk.uio.no/karinlag __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listi

[R] combine vector and data frame on field?

2008-02-26 Thread Karin Lagesen
Count corresponds to the field called PID in the data frame. Any hints on how to do this? cbind just adds the vector onto the end, and I couldn't quite figure out if I could somehow say that the level should correspond to the PID. Thanks a lot for your helpin advance:) Karin -- Karin Lages

[R] clustering problem

2008-02-20 Thread Karin Lagesen
your help! Karin -- Karin Lagesen, PhD student [EMAIL PROTECTED] http://folk.uio.no/karinlag __ R-help@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.htm

[R] tabulation on dataframe question

2008-02-18 Thread Karin Lagesen
). In this case, if the requirement was Distances == 0.2 AlphaBeta Alpha 12 Beta20 This resulting table would be symmetrical. I hope I am able to convey what I would like, and TIA for your help! Karin -- Karin Lagesen, PhD student [EMAIL PROTECTED] http

[R] extracting rows from dataframe that match a vector

2008-02-05 Thread Karin Lagesen
that I have misunderstood? Thanks for your help btw! Karin -- Karin Lagesen, PhD student [EMAIL PROTECTED] http://folk.uio.no/karinlag __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] accessing the indices of outliers in a data frame boxplot

2008-01-25 Thread Karin Lagesen
hiskers and use that as a criteria, but I am unsertain of how to do this withhout doing it manually. The factor I am plotting against contains 17 levels, and I'd thus like to see if there is a somewhat more general solution available. Thanks for your help! Karin -- Karin Lagesen, PhD student [E

[R] contingency table on data frame

2008-01-22 Thread Karin Lagesen
# Perhaps has these ys: 2,4,2 My dataframe has lots of other colums too, but I only want this information out. Thankyou for your help! Karin -- Karin Lagesen, PhD student [EMAIL PROTECTED] http://folk.uio.no/karinlag __ R-help@r-project.org mailing

[R] subsetting a data frame using string matching

2008-01-21 Thread Karin Lagesen
5 Alpha5 6 beta6 > I would like to be able to get a new data frame from this data frame containing only rows that match a certain string. In this case it could for instance be the string "eta". I have tried various ways of using agrep and grep, but so far I have not found

[R] creating summary functions for data frame

2007-10-11 Thread Karin Lagesen
in the mail archives...:) TIA, Karin -- Karin Lagesen, PhD student [EMAIL PROTECTED] http://folk.uio.no/karinlag __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.

[R] "continuous" boxplot?

2007-10-01 Thread Karin Lagesen
Karin -- Karin Lagesen, PhD student [EMAIL PROTECTED] http://folk.uio.no/karinlag __ R-help@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 comm

[R] How to choose name for package during install (was:Re: problem loading hexbin associated package colorspace)

2007-09-27 Thread Karin Lagesen
urce = keep.source) : in 'colorspace' methods for export not found: [, coords, plot Error: package/namespace load failed for 'colorspace' > Karin -- Karin Lagesen, PhD student [EMAIL PROTECTED] http://folk.uio.no/karinlag _

[R] problem loading hexbin associated package colorspace

2007-09-27 Thread Karin Lagesen
s" "grDevices" "utils" "datasets" [7] "methods" "base" other attached packages: lattice "0.14-9" > The colorspace package is version 0.95. Is this an error with my system, this code

[R] Am I misunderstanding the ifelse construction?

2007-09-25 Thread Karin Lagesen
gc_contents become negative. An I misunderstanding how to use the ifelse construct? And in that case, how should I go about doing this in a different way? Thankyou very much in advance for your help, and I hope that my question is not too banal! Karin -- Karin Lagesen, PhD student [EMAIL PROT

[R] function on factors - how best to proceed

2007-09-19 Thread Karin Lagesen
nction? Or is my solution way off from how things are done in R? Thankyou very much for your help! Karin -- Karin Lagesen, PhD student [EMAIL PROTECTED] http://folk.uio.no/karinlag __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

[R] add group to boxplot

2007-09-17 Thread Karin Lagesen
t;A") > Aspray[] = lapply(Aspray, function(x) if (is.factor(x)) factor(x) else x) Now, I want to add Aspray as a new boxplot at the end of the existing plot, What do I do then? Karin -- Karin Lagesen, PhD student [EMAIL PROTECTED] http://folk.uio.no/karinlag _