similar to: 11 distinguishable colors

Displaying 20 results from an estimated 20000 matches similar to: "11 distinguishable colors"

2010 Mar 24
2
splitting word
Hi all, Could someone tell me how to split a word. c("AA") to c("A","A") Thanks! Phoebe [[alternative HTML version deleted]]
2009 May 04
2
rotate texts
Hi all, I'm hoping to add texts into a plot. I'm using text() to do it. I wonder if the text() allow me to make the text vertically printed? Thanks in advance for help, phoebe [[alternative HTML version deleted]]
2009 May 01
3
factor level
Hi All, I have problem about the factor features. I read in a .cvs file, a column which is supposed to be numeric, but it becomes factor level data after reading in. mydata[,"newXaxis"] [1] 0 0.430010601 11.23198508 25.00940297 37.75338045 45.98289639 [7] 48.92328133 52.51142822 61.12359751 63.85832121 70.98927949 77.16550181 [13] 97.73545713 113.6588007 118.6588007
2008 Oct 01
2
Looking for position of character in a string
Hi all, I would like to check if a string contains "." in it. If yes, I would like to know the position of "." in the string. Eg: X<-"NM1236.3" In above example, "." is at position 7. I tried functions grep() and match(). It seems they couldn't detect ".". Thanks in advance for your help, Sityee [[alternative HTML version deleted]]
2009 Feb 09
2
summary statistics
Hi all, I'm wondering if there is a function that can return summary statistics: N=total number of observation, # missing, mean, median, range, standard deviation. As I know, summary() returns some of info I've mentioned above. Thanks, SY [[alternative HTML version deleted]]
2010 Oct 19
3
scatter.smooth() fitted by loess
Hi there, I would like to draw a scatter plot and fit a smooth line by loess. Below is the data. However, the curve line started from 0, which my "resid" list doesn't consist of 0 value. It returned some warnings which I don't know if this is the reason affecting such problem. Here I also attached the warning messages. Please let me know if there is a solution to fix this. Thank
2010 Aug 03
1
concatenate values in the vector
Hi all, Is there a function that allow me to concatenate each value in a vector to a string? x<-c("a","b","c","d") output string = a+b+c+d Thanks, phoebe [[alternative HTML version deleted]]
2009 Nov 09
1
categorization
Hi All, I have a dataset with a column named "Condition", Sample Condition 1 c20 2 c20 3 c10 4 c10 5 c9 6 c9 7 c5 8 c5 9 c20 10 c10 Could you let me know the fastest way to change c20->"AA", c20->"BB", c9->"CC", c5->"DD"
2008 Oct 20
1
par(mfrow=c(2,4))
Hi All, I'm going to draw 8 plots in one page. I want the plots to be arranged in two rows, each row has 4 plots. So, I set the it par(mfrow=c(2,4)). However, there might be too many plots in a page, all the 8 plots were drawn in triangular shape, which makes the x-y coordinate scale not in same length, the x-axis length is much shorter than the y-axis length. Could anybody let me know how
2008 Jul 09
2
Read.table - Less rows than original data
Dear all, I have problem when reading a table into R. The total row of read in table has is much less than the original saved table. I built a 1,273,230 by 6 data set named "mydata2", it was saved in the following command, write.table(mydata2, "mydata2.txt", row.name=F,col.name=T,quote=F,sep="\t") The next day I read in above saved text file into R,
2010 Dec 01
2
draw categorical histogram
Hi, Can someone tell me how to draw a histogram for the following summary? Richard Minnie Albert Helen Joe Kingston 12 33 56 67 15 66 The summary tell that Richard has occurrence 12, Minnie has occurrence 33, and so on. I would like to view this summary in a histogram. I want the X-axis be the person name (Richard, Minnie, ....), Y-axis be the
2009 Feb 17
2
matrix output
Hi friends, I have questions about printing a pretty big size matrix. As you could see from below, the matrix wasn't showed in R at full size (11X11), but it was cut partly into three smaller matrices (11X4,11X4,11X3). I'm wondering if there is a way to show the whole matrix with dimension 11X11, do you know how to make it? If R really couldn't fit the full big matrix at once, what
2009 Feb 11
2
bar plot/ histogram
Hi all, I would like to construct plot of the distribution of N, where N range from 1 to 10. I couldn't just use the hist(), as I want the categories for the bars are: 1, 2, 3, 4, >=5. So this will be a bar plot with 5 bars, and the height of the bar will be the frequency of N. (eg bar#1 will be the frequency of N=1, bar #2 will be frequency of N=2, and bar#5 will be the frequency of
2009 Nov 25
1
draw circle on PCA plot
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20091125/bf6c327e/attachment-0001.pl>
2010 Apr 16
1
PCA scores
Hi all, I have a difficulty to calculate the PCA scores. The PCA scores I calculated doesn't match with the scores generated by R, mypca<-princomp(mymatrix, cor=T) myscore<-as.matrix(mymatrix)%*%as.matrix(mypca$loadings) Does anybody know how the mypca$scores were calculated? Is my formula not correct? Thanks a lot! Phoebe [[alternative HTML version deleted]]
2010 May 05
1
ordering data frame
Hi all, I have problem in ordering data frame. Could anyone help me? > x [,1] [,2] [,3] [1,] "A" "1" "2" [2,] "G" "3" "2" [3,] "E" "2" "3" > y [,1] [,2] [,3] [1,] "G" "3" "3" [2,] "A" "3" "3" [3,] "E"
2008 Jun 24
1
Error Handling
Hi All, The for-loop below stopped when error("Cannot get confidence intervals on var-cov components: Non-positive definite approximate variance-covariance") occurred. I assigned a row of NA values to the data frame "m1" manually and reset "j" in the for-loop every time error returned. I’m wondering if there is a function that can detect error or failure, so the
2013 Jun 10
1
Selecting divergent colors
Hi, I was trying to make a density plot with 13 samples. To distinguish each sample, it would be good if each color is as different as possible from the other colors. I could use the built in function, but that does not do more than 8 colors and then goes back to recycling the cols. If I use a palette, then it is really difficult to distinguish between the colors. So, is there a way that I can
2008 Jul 09
1
read.table problem
Dear all, I have problem when reading a table into R. The total row of read in table has is much less than the original saved table. I built a 1,273,230 by 6 data set named "mydata2", it was saved in the following command, write.table(mydata2, "mydata2.txt", row.name=F,col.name=T,quote=F,sep="\t") The next day I read in above saved text file into R,
2008 Nov 11
1
data which has different size of elements in each row
Hi all, I have problem reading in a text file as follow. The following data has not column header. I tried the following command but failed, temp<-read.table("data.txt",header=F) An error message stated that line 3 did not have 4 elements. 0.293290E-05 0.117772E-05 -0.645205 rs2282755 0.307521E-05 0.000314 0.412997 rs1336838 0.484017E-05