[R] Questions about the glht function for planned comparison

2013-01-10 Thread Wendy Qiao
o specify the number in glht, but got the same error as "not enough degrees of freedom to define contrasts". Does anyone know what's happening and how I could possibly solve the problem? Thank you so much. Best, Wendy [[alternative HTML version deleted]] _

Re: [R] How to label certain values on a curve?

2012-06-06 Thread Wendy Han
This is exactly what I need. Thanks a lot! Best, Wendy On Wed, Jun 6, 2012 at 11:38 AM, R. Michael Weylandt < michael.weyla...@gmail.com> wrote: > Take a look at the identify() function. > > Best, > Michael > > On Wed, Jun 6, 2012 at 11:23 AM, Wendy Han wrote: > >

[R] How to label certain values on a curve?

2012-06-06 Thread Wendy Han
! Wendy [[alternative HTML version deleted]] __ 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 commented, minimal, self-contained

[R] igraph find the path with the smallest weights

2012-02-28 Thread Wendy
path, can I colour code the path? Thank you in advance. Wendy -- View this message in context: http://r.789695.n4.nabble.com/igraph-find-the-path-with-the-smallest-weights-tp4429343p4429343.html Sent from the R help mailing list archive at Nabble.com

[R] set heatmap.2 color ranges

2012-02-27 Thread Wendy
ranges as I described. Could anybody give some hints? Thank you in advance. Wendy -- View this message in context: http://r.789695.n4.nabble.com/set-heatmap-2-color-ranges-tp4425166p4425166.html Sent from the R help mailing list archive at Nabble.com.

[R] access results of graph.maxflow and program max-flow algorithm

2012-02-10 Thread Wendy
. Thank you in advance. Wendy -- View this message in context: http://r.789695.n4.nabble.com/access-results-of-graph-maxflow-and-program-max-flow-algorithm-tp4375744p4375744.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org

[R] questions about scatterplotMatrix

2011-12-06 Thread Wendy
axis limits the same. scatterplotMatrix(~ income + education + prestige, smooth = FALSE,transform=FALSE, data=Duncan,robust=TRUE,diagonal="none",plot.points = TRUE,reg.line=abline(0,1)) Does anybody know how to achieve this? Any advice is appreciated. Thank you. Wendy -- View th

[R] permutate elements in a vector

2011-12-01 Thread Wendy
. Wendy -- View this message in context: http://r.789695.n4.nabble.com/permutate-elements-in-a-vector-tp4127821p4127821.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo

[R] round up a number to 10^4

2011-11-01 Thread Wendy
Hi all, I have a list of numbers, e.g., X = c(60593.23, 71631.17, 75320.1), and want to round them so the output is Y = c(6, 8, 8). I tried Y<-round(X,-4), but it gives me Y = c(6, 7, 8). Do anybody know how to round up a number to 10^4? Thank you in advance. We

[R] annotate histogram

2011-11-01 Thread Wendy
Hi all, I want to make a histogram like the one show http://nar.oxfordjournals.org/content/39/suppl_1/D1011/F1.expansion.html here , but I did not figure out how to add the red marks at the bottom of the bars. Could anybody help? Thank you very much -- View this message in context: http://r.789

[R] element-by-element comparison

2011-10-30 Thread Wendy
for loop, but haven't had any luck yet? Any advice is appreciated. Thank you very much. Wendy -- View this message in context: http://r.789695.n4.nabble.com/element-by-element-comparison-tp3952301p3952301.html Sent from the R help mailing list archive at Na

[R] get the sorted index of elements within a column

2011-10-11 Thread Wendy
ork. Could anybody please help? Thank you very much. Wendy -- View this message in context: http://r.789695.n4.nabble.com/get-the-sorted-index-of-elements-within-a-column-tp3896606p3896606.html Sent from the R help mailing list archive at Nabble.com. ___

[R] reshape a matrix

2011-08-20 Thread Wendy
ix, so the matrix with 'd0', 'd1' and 'd2' in rows and 'control' and 'sample' in columns. Is there a function for doing this easily? Thank you in advance. Wendy -- View this message in context: http://r.789695.n4.nabble.com/reshape-a-matrix-tp3757

[R] About How to check if a html directory exists

2011-04-25 Thread Wendy Han
occurs, my program returns error and terminates. So I wonder if there is any way that I can check if a directory exists before downloading that file. I appreciate your help! Thanks! Wendy [[alternative HTML version deleted]] __ R-help@r

[R] count number of TRUEs in each row

2011-04-10 Thread Wendy
TRUE TRUE Thank you in advance. Wendy -- View this message in context: http://r.789695.n4.nabble.com/count-number-of-TRUEs-in-each-row-tp3440486p3440486.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

[R] plot two pearson correlation matrix on one heatmap

2011-02-05 Thread Wendy
want to ignore the zero elements in the combined matrix and display them in black. Also, I want the scale to be greater than 0.7. I looked at the heatmap.2 webpage, but did not have a clue. Could anybody help me? Thank you in advance. Wendy -- View this message in context: http://r.789695.n4.nabble.co

[R] Find the empty element in a factor array

2011-01-26 Thread Wendy
Hi all, I have a factor array, and some of the elements are empty. How would I return the index number of the empty elements. For example, test<-factor(c('A','','B','C','E')) > test [1] A B C E Levels: A B C E I would like the resul

[R] weighted x variables with glm

2010-11-28 Thread Wendy Anderson
I have a glm regression (quasi-poisson) of log(mu) on x but I have varying degrees of confidence in the x values, and can attach a numerical weighting to each. Can anyone help me with suggestions of how to analysise this. Is there an R package that would help? Wendy [[alternative HTML

[R] Confusion of cov() and ccov() Function Error

2010-07-19 Thread Wendy Han
On Mon, Jul 19, 2010 at 9:09 AM, Wendy Han wrote: > Hi, > > Excuse me for asking this silly question. But I really couldn't understand > why cov() and ccov() don't work for my calculation of covariance matrix. > > a <- matrix(1:8, 2, 4) > a > [,1] [,2]

[R] Calculation of Covariance Matrix Calculation

2010-07-19 Thread Wendy Han
rocal condition number = 1.97276e-24 In addition: Warning message: 'cov' is deprecated. Use 'ccov' instead. See help("Deprecated") I don't know what is wrong, and I appreciate you kind help! Thank you! Wendy [[alternative HTML version deleted]] _

[R] export results

2010-02-25 Thread Wendy
results from the second loop to the second coclumn of a spreadsheet etc. Thank you very much, Wendy -- View this message in context: http://n4.nabble.com/export-results-tp1568880p1568880.html Sent from the R help mailing list archive at Nabble.com. __ R

[R] change email subscription

2010-02-22 Thread Wendy Qiao
subscription. Thank you. Wendy [[alternative HTML version deleted]] __ 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

[R] machine precision problem

2010-02-21 Thread wendy
if there is a way to lowering the minimum double precision in R. I am using R version 2.10.1. Thank you in advance. Wendy -- View this message in context: http://n4.nabble.com/machine-precision-problem-tp1563732p1563732.html Sent from the R help mailing list archive at Nabble.com

[R] replicate matrix

2010-02-20 Thread wendy
7;rep' only works for vector. Does anyone know how to replicate a matrix, and append the matrix? Thank you in advance, Wendy -- View this message in context: http://n4.nabble.com/replicate-matrix-tp1563337p1563337.html Sent from the R help mailing list archive at

[R] coerce (list) object to type 'double'

2010-02-20 Thread wendy
uot;, or how to convert the data.frame matrix into numeric? Thank you very much. Wendy -- View this message in context: http://n4.nabble.com/coerce-list-object-to-type-double-tp1562988p1562988.html Sent from the R help mailing list archive at Nabble.com. ___

[R] S4 object??

2009-10-22 Thread Wendy Chen
t (class "classRepresentation") that is not an S4 object   I am using R-2.9.2. Whats happening now? I have done exactly the same commands in another computer and it works fine. I forgot which R version it was. But after installing the latest version nothing works. Pls adv