[R] Some help understanding ggplot2

2015-11-28 Thread Glenn Schultz
All, I am trying to format a graph using scales and percent format but I am missing something and all my graphics books on ggplot2 are now quite far behind where ggplot2 is today.    I seem to be missing a trick but the documentation implies that percent_format() will multiply by 100 and add %

Re: [R] some help

2012-11-29 Thread PIKAL Petr
t.org > Subject: Re: [R] some help > > Hey again! > > I finally, after some work done before, had time to apply the code. > The sorting of the table did not work well or maybe something was > misunderstood. > > I have a table with 973 rows and 1329 col (ascii/text

Re: [R] some help

2012-11-26 Thread jim holtman
try this: (provide sample data next time) > # create some test data > x <- data.frame(LST = runif(1000), NDVI = runif(1000, 0, 1)) > head(x,10) # show some data LST NDVI 1 0.86542839 0.95129647 2 0.88910058 0.75971649 3 0.44086718 0.86532140 4 0.99879370 0.05511501 5 0.02401

Re: [R] some help

2012-11-26 Thread dattel_palme
Hey The code need some corrections and I would kindly ask for help. Say: I have a table with two columns: col1=LST and col2=NDVI i would like to sort all data by NDVI. in reality the NDVI ranges between 0 and 1 (although some values might be minus also). I want to sort by NDVI values and then ma

Re: [R] some help

2012-11-26 Thread dattel_palme
Hey again! I finally, after some work done before, had time to apply the code. The sorting of the table did not work well or maybe something was misunderstood. I have a table with 973 rows and 1329 col (ascii/text file). I want to sort the table that all columns are one under each other so that

Re: [R] some help

2012-11-04 Thread dattel_palme
HI David, Thanks for your answers, I can't provide data here, but I can explain more: It's satellite images as a text file (ascii). Two different images with two different variables, land surface temperature (LST -lstascii =filename) and an vegetation index (NDVI - ndviascii = filename). The aim

Re: [R] some help

2012-11-04 Thread Rui Barradas
mue...@yahoo.de dattel_pa...@yahoo.de Von: Rui Barradas An: dattel_palme CC: r-help@r-project.org Gesendet: 19:34 Samstag, 3.November 2012 Betreff: Re: [R] some help Hello, Without data it's not easy to answer to your questions, but 1. Use ?unlist. If t

Re: [R] some help

2012-11-04 Thread dattel_palme
HI everybody, Thanks for your answers, I can't provide data here, but I can explain more: It's satellite images as a text file (ascii). Two different images with two different variables, land surface temperature (LST -lstascii =filename) and an vegetation index (NDVI - ndviascii = filename). Th

Re: [R] some help

2012-11-03 Thread Rui Barradas
Hello, Without data it's not easy to answer to your questions, but 1. Use ?unlist. If the data is in a file, read it with ?read.table and the unlist the result. All columns will be stacked. dat <- read.table(filename, ...) unlist(dat) 2. At best confusing. But to divide a vector into groups

Re: [R] some help

2012-11-03 Thread David Winsemius
On Nov 3, 2012, at 9:07 AM, dattel_palme wrote: > Hi People! > > I have following concern consisting of some steps to do in R: > > I have an ascii file (table) consisting of many columns and rows. > 1. I would like to order all values of the columns one under each other. It > will begin with

[R] some help

2012-11-03 Thread dattel_palme
Hi People! I have following concern consisting of some steps to do in R: I have an ascii file (table) consisting of many columns and rows. 1. I would like to order all values of the columns one under each other. It will begin with column 1, then column 2 under column 1, column 3 under column 2

Re: [R] some help to improve "hist to plot relative frequencies"

2012-06-18 Thread Deepayan Sarkar
On Fri, Jun 15, 2012 at 9:22 PM, gianni lavaredo wrote: > Dear Researches, > > sorry for disturb. I wish to improve my figure in R plotting the relative > frequencies of my data set. > > library(lattice) > a <- c(0,0,0,1,1,2,4,5,6,7,7,7,7,7,8,8,8,8,9,9,9,9,10,10,11) > histogram(a, xlab="myData") >

[R] some help to improve "hist to plot relative frequencies"

2012-06-15 Thread gianni lavaredo
Dear Researches, sorry for disturb. I wish to improve my figure in R plotting the relative frequencies of my data set. library(lattice) a <- c(0,0,0,1,1,2,4,5,6,7,7,7,7,7,8,8,8,8,9,9,9,9,10,10,11) histogram(a, xlab="myData") what i wish to do is: 1) invert the order of X and Y (eg: Precent of T

[R] Some help needed

2012-05-08 Thread li li
Dear all, For the following code, I have the error message "Error in uniroot(f1star, lower = -10, upper = 0, tol = 1e-10, lambda = lam[i], : f() values at end points not of opposite sign". It seems the problem occurs when lambda is equal to 0.99. However, there should be a solution for "f1

Re: [R] Some Help Needed

2012-04-24 Thread peter dalgaard
On Apr 24, 2012, at 05:52 , li li wrote: > Dear all, > I need to do some calculation where the code used are below. I get > error message when I choose k to be large, say greater than 25. > The error message is > "Error in integrate(temp, lower = 0, upper = 1, k, x, rho, m) : > the integral is

[R] Some Help Needed

2012-04-23 Thread li li
Dear all, I need to do some calculation where the code used are below. I get error message when I choose k to be large, say greater than 25. The error message is "Error in integrate(temp, lower = 0, upper = 1, k, x, rho, m) : the integral is probably divergent". Can anyone give some help on res

[R] some help

2010-03-06 Thread Ibrahim henaish
I am  working  on bayesian copula but i am new in this area and i do not have much knowledge about it. Does any one know  how to use  bayesian copula using R with winbugs? and estimating missing data by R?   hena...@yahoo.com sincerely [[alternative HTML version deleted]] __

Re: [R] some help regarding combining columns from different files

2010-01-12 Thread Simon Knapp
Hi Hari, You have not given examples of 'list1.bp.files.names' or 'list2.bp.files.names' and hence it is difficult to determine what the code is trying to achieve. I will assume you want to create all pairwise merges of the attached files. If this is indeed what you are doing, the problem is not a

Re: [R] some help regarding combining columns from different files

2010-01-12 Thread Harikrishnadhar
Hi Jim, I am want to merge two files into one file : Here is my code . But the problem with this is that I am getting the 2nd file appended to the first when i write temp3 in my code to the text file. I am not sure what mistake I am doing . also find the test files to run the code . Please help

Re: [R] some help regarding combining columns from different files

2009-12-18 Thread jim holtman
In your function, you have temp <- read.table(fnames,header=T,sep="\t",stringsAsFactors=F,quote="\"") I think you mean: temp <- read.table(i,header=T,sep="\t",stringsAsFactors=F,quote="\"") Also 'files' is a parameter, but you are using 'fnames' in the 'for' loop; shouldn't that be 'files'?

[R] some help regarding combining columns from different files

2009-12-17 Thread Harikrishnadhar
Dear all, Here is my code which am using to combine 5th column from different data sets. Here is the function to do my job genesymbol.append.file <-NULL gene.column <- NULL readGeneSymbol <- function(files,genesymbol.column=5){ for(i in fnames){ temp <- read.table(fnames,header=T,sep="\t",str

Re: [R] some help with plotting a beautiful structure using rgl

2009-08-13 Thread Nair, Murlidharan T
, August 13, 2009 1:01 PM To: r-help@r-project.org Subject: [R] some help with plotting a beautiful structure using rgl Hi!! I need some help in using the correct required symbol when plotting my DNA structure using rgl. I need to plot one strand using empty circles and the other using filled

[R] some help with plotting a beautiful structure using rgl

2009-08-13 Thread Nair, Murlidharan T
Hi!! I need some help in using the correct required symbol when plotting my DNA structure using rgl. I need to plot one strand using empty circles and the other using filled circles and if possible have sequence in the center. I tried using pch and lty but have not been able to get it to do wha

Re: [R] Some help with dates.

2008-06-20 Thread jim holtman
Check out 'POSIXlt'. This should provide a hint as to how you can do it: > ?as.POSIXlt > x <- as.POSIXlt('2008-03-04 11:00') > x [1] "2008-03-04 11:00:00 GMT" > unlist(x) sec min hour mday mon year wday yday isdst 0 011 4 2 108 263 0 > ?POSIXlt > myDat

[R] Some help with dates.

2008-06-20 Thread Paul Fisch
Hey, I'm new to R but familiar with other programming languages. Basically, I want to store an array of dates. For each of these dates I want to store only the day of the week and the hour. So for example: "Monday 12" would be Monday at 12 o'clock and "Tuesday 20" would be Tuesday at 8 p.m. Al