Re: [R] hist function in a for loop

2013-06-19 Thread Rui Barradas
Hello, Your code doesn't work because you are calling a non-function: hist(singlefile$CL1( ... )) # here singlefile$CL1 is not a function. For us to be able to help you please do the following. 1. paste the output of the command below in a post dput(head(singlefile, 50)) 2. Post a call to h

Re: [R] hist function in a for loop

2013-06-18 Thread Dzu
Dear, I want to do the following : #I have created a huge csv.files with 44 colums #I want to select the specific colums from these files #CL1 consist data from which I want to compute the histogramms, CL2 is the cloumn which has numbers that identifies know from which line my second histogram d

Re: [R] hist function in a for loop

2013-06-18 Thread Dzu
Hello Thanks for reply I want to compute several histograms in a for loop.I am trying to set the binsize constant in the beginning. #compute the histograms for (i in 1:12) { binsize <- -20 :20/2 hist(singlefile$GVC(singlefile$new_id[,i], freq = FALSE,xlab ="Graph i", col = "pink",

Re: [R] hist function in a for loop

2013-06-18 Thread Rui Barradas
Hello, Sorry, I forgot to Cc the list. Rui Barradas Em 18-06-2013 16:29, Rui Barradas escreveu: Hello, Inline. Em 18-06-2013 15:54, Dzu escreveu: Dear all, I need to create a for-loop in which I can compute multiple histograms My code is the following : #singlefile includes huge csv file #I

[R] hist function in a for loop

2013-06-18 Thread Dzu
Dear all, I need to create a for-loop in which I can compute multiple histograms My code is the following : #singlefile includes huge csv file #I want to specify the binsize #I would like to compute in the for -loop the histograms numfiles <- length(singlefile) for (i in 1 :51) {

Re: [R] Hist function

2012-08-07 Thread R. Michael Weylandt
On Tue, Aug 7, 2012 at 8:05 AM, Dominic Roye wrote: > Hello everyone, > > > First i explain my aim. I would like to calculate the frecuency of > temperature (datos.mx1, columns 3-6) for each month with the thresholds of > table lf.med and lc.med. > > numero1 <- hist(subset(datos.mx1[,3], > datos.

[R] Hist function

2012-08-07 Thread Dominic Roye
Hello everyone, First i explain my aim. I would like to calculate the frecuency of temperature (datos.mx1, columns 3-6) for each month with the thresholds of table lf.med and lc.med. numero1 <- hist(subset(datos.mx1[,3], datos.mx1$Mes==1),plot=FALSE,breaks=c(min(datos.mx1[,3]),lf.med[1,2],lc.me

Re: [R] hist function+label second y-axis

2008-03-21 Thread Jim Lemon
canadiangirl19 wrote: > with the plot function I get the timeseries, I want a histogram but as a line > and no bars. > plot(x$LAN_3,type="h") > I should have been clearer: plot(hist(x$LAN_3,plot=FALSE)$counts,type="h",...) Jim __ R-help@r-project.org

Re: [R] hist function+label second y-axis

2008-03-21 Thread canadiangirl19
with the plot function I get the timeseries, I want a histogram but as a line and no bars. plot(x$LAN_3,type="h") I solved the second problem with: mtext("Differenzwerte",side=3,line=3) mtext("Häufigkeit (diff Werte)",side=4) but get a new little problem: If I set line=3 at the axis=4 R did not

Re: [R] hist function+label second y-axis

2008-03-21 Thread Jim Lemon
canadiangirl19 wrote: > Dear Forum, > > hist(x$LAN_3,col="green",xaxt='n',yaxt='n',xlab="",ylab="",main="",type="l") > I´d like to craete a line not a bar in the hist function, but regrettably I > get only warning messages: > 1: Grafikparameter "type" ist veraltet in: title(main, sub, xlab, ylab,

[R] hist function+label second y-axis

2008-03-21 Thread canadiangirl19
Dear Forum, hist(x$LAN_3,col="green",xaxt='n',yaxt='n',xlab="",ylab="",main="",type="l") I´d like to craete a line not a bar in the hist function, but regrettably I get only warning messages: 1: Grafikparameter "type" ist veraltet in: title(main, sub, xlab, ylab, line, outer, ...) 2: Grafikparam