Re: [R] help for

2016-12-30 Thread David Winsemius
> On Dec 30, 2016, at 4:24 PM, Elham - wrote: > > yes me too,but I do not have time to install and learn linux,I need tutorial > based on windows Fine. But you are asking in the wrong place. It's a BioC question. Most of us here are not Bioc users. Use the forum that is designed for that purp

Re: [R] help for

2016-12-30 Thread Elham - via R-help
yes me too,but I do not have time to install and learn linux,I need tutorial based on windows On Saturday, December 31, 2016 3:50 AM, David Winsemius wrote: > On Dec 30, 2016, at 9:57 AM, Elham - via R-help wrote: > > hi all, I am following > http://bioinformatics.knowledgeblog.org

Re: [R] help for

2016-12-30 Thread David Winsemius
> On Dec 30, 2016, at 9:57 AM, Elham - via R-help wrote: > > hi all, I am following > http://bioinformatics.knowledgeblog.org/2011/06/20/analysing-microarray-data-in-bioconductor/ That page was designed by and for someone with Linux installation. To quote from the opening paragraph: "Some fa

Re: [R] help for

2016-12-30 Thread Elham - via R-help
actually I do not work with linux. do you know same of this tutorial for windows? On Friday, December 30, 2016 10:16 PM, John McKown wrote: On Fri, Dec 30, 2016 at 12:08 PM, Sarah Goslee wrote: This isn't an R question, but a linux question. Open a new terminal window: The direction

Re: [R] stacked and dodged bar graph ggplot

2016-12-30 Thread Jim Lemon
Hi Robert, I realize that this isn't in ggplot, but are you looking for something like this? Demog <- data.frame(source=c(rep("Davis",4),rep("Dixon",4),rep("Winters",4)), group =c("Asian / Pacific Islander","Caucasian","Latinx", "Not Latinx","African American", "Native American", "Latinx", "Not

Re: [R] about data format in R

2016-12-30 Thread Duncan Mackay
Hi Is this the output from Excel? If so format it in Excel for a date format not a date-time format . Depending how the dates were inputted into Excel and the Excel setup a date may not be a date format. There are no rules with microsoft formatting so beware! Regards Duncan Duncan Mackay Depa

Re: [R] stacked and dodged bar graph ggplot

2016-12-30 Thread Ulrik Stervbo
You can use the tidyr package to combine race and enth into one column and fill by that. Then you get one colour for race and one for enth. HTH Ulrik On Fri, 30 Dec 2016, 20:12 Richard M. Heiberger, wrote: > I reproduced your graphs, but I don't understand what you want instead. > > There are s

Re: [R] stacked and dodged bar graph ggplot

2016-12-30 Thread Richard M. Heiberger
I reproduced your graphs, but I don't understand what you want instead. There are several problems. one group is spelled "Lantinx". your factor statements mostly lead to NA values. The two panels of the plot do not use the same number of inches of the plotting window, due to different widths

Re: [R] about data format in R

2016-12-30 Thread Rui Barradas
Hello, What I did was: DF <- read.table(text = " dateevap precipintercept 10/01/1995-00:00:00 1.5 20.2 10/01/1995-12:00:00 1.7 2.2 0.1 10/02/1995-00:00:00 1.5 1.8 0.3 ", header = TRUE, stringsAsF

Re: [R] about data format in R

2016-12-30 Thread Sarah Goslee
Probably you need to use file1 <- read.table('df', header=TRUE, stringsAsFactors=FALSE) str(file1) generally shows you all sorts of useful things about the file you have just imported into R. Sarah On Fri, Dec 30, 2016 at 1:37 PM, lily li wrote: > Hi Rui, > > Thanks for your reply. When I rea

Re: [R] help for

2016-12-30 Thread John McKown
On Fri, Dec 30, 2016 at 12:08 PM, Sarah Goslee wrote: > This isn't an R question, but a linux question. > > Open a new terminal window: > The directions you are following tell you how to do that for the > Ubuntu linux being used, right at the beginning: > > Open up a terminal (Applications->Acces

Re: [R] about data format in R

2016-12-30 Thread lily li
Hi Rui, Thanks for your reply. When I read in data using my code, the first column ranges from 0 to 1. So when I use the code you wrote, it shows the error message: Error in as.POSIXct.numeric(DF$Date, format = "%m/%d/%Y-%H:%M:%S") : 'origin' must be supplied On Fri, Dec 30, 2016 at 11:23 AM, Ru

[R] stacked and dodged bar graph ggplot

2016-12-30 Thread Robert Lynch
I have some census data with race and ethnicity for various towns. I am trying to make a stacked bar graph where all the race data is in one stacked bar, and all the ethnicity data is in another. Below is a minimal reproducible sample. library("ggplot2") Demog <- data.frame(source=c(rep("Davis"

Re: [R] about data format in R

2016-12-30 Thread Rui Barradas
Hello, Have you tried df$date <- as.POSIXct(dat$date, format = "%m/%d/%Y-%H:%M:%S") ? Hope this helps, Rui Barradas Em 30-12-2016 17:40, lily li escreveu: Hi R users, I'm trying to read in data, and then plot time series data. However, I have some problems. In my dataset, the first column

Re: [R] help for

2016-12-30 Thread Sarah Goslee
This isn't an R question, but a linux question. Open a new terminal window: The directions you are following tell you how to do that for the Ubuntu linux being used, right at the beginning: Open up a terminal (Applications->Accessories->Terminal from the the toolbar) As for your command, the $ i

[R] help for

2016-12-30 Thread Elham - via R-help
hi all, I am following  http://bioinformatics.knowledgeblog.org/2011/06/20/analysing-microarray-data-in-bioconductor/  I need to download phenotypic data in the form of text file that describe chip names, and the source of the biological samples as well as probe that hybridised to them. I can not

[R] about data format in R

2016-12-30 Thread lily li
Hi R users, I'm trying to read in data, and then plot time series data. However, I have some problems. In my dataset, the first column represents time, and in the format: mm/dd/-hr:min:sec; For example, 10/01/1995-00:00:00, 10/01/1995-06:00:00, etc. df: dateevap

Re: [R] Date Column error: 'origin' must be supplied

2016-12-30 Thread Achim Zeileis
On Fri, 30 Dec 2016, Frederic Ntirenganya wrote: Hi All, I am creating date column on my data but getting the following error: #add date column dat1$Date=paste(as.Date(dat1$Year,dat1$Month, dat1$Day, sep="-"))Error in as.Date.numeric(origin, ...) : 'origin' must be supplied You first need to

[R] Date Column error: 'origin' must be supplied

2016-12-30 Thread Frederic Ntirenganya
Hi All, I am creating date column on my data but getting the following error: #add date column dat1$Date=paste(as.Date(dat1$Year,dat1$Month, dat1$Day, sep="-"))Error in as.Date.numeric(origin, ...) : 'origin' must be supplied I will appreciate any help from you guys. Thanks. Here is the data.

Re: [R] [FORGED] Export R output in Excel

2016-12-30 Thread John McKown
On Thu, Dec 29, 2016 at 4:32 PM, Erich Subscriptions < erich.s...@neuwirth.priv.at> wrote: > Just a very brief footnote. > I is easy to write badly structured spreadsheets. > But if people dong this would not have spreadsheets > and be forded to write code, they probably also > would write badly s