[R] R: log and Log Histogram

John Kane jrkrideau at yahoo.ca
Tue Aug 5 16:23:28 CEST 2008


It looks like x is not a numeric.  Try
str(testground)  
to see what the data set looks like.


--- On Mon, 8/4/08, Alessandro <alessandro.montaghi at unifi.it> wrote:

> From: Alessandro <alessandro.montaghi at unifi.it>
> Subject: [R] R:  log and Log Histogram
> To: "'David Scott'" <d.scott at auckland.ac.nz>
> Cc: r-help at r-project.org
> Received: Monday, August 4, 2008, 8:01 PM
> Hi david,
> 
> I tried HyperbolicDist but I have this problem (I wish
> transform Z value)
> 
> Library (HyperbolicDist)
> Data (testground) # X,Y and Z value in txt file
> changetestground <-
> testground[-length(testground)]/testground[-1]
> hist(change)
> Error in hist.default(change) : 'x' deve essere
> numeric
> logHist(change)
> Error in hist.default(x, plot = FALSE) : 'x' must
> be numeric
> 
> THANK
> 
> Ale
> 
> -----Messaggio originale-----
> Da: David Scott [mailto:d.scott at auckland.ac.nz] 
> Inviato: lunedì 4 agosto 2008 16.30
> A: Alessandro
> Cc: r-help at r-project.org
> Oggetto: Re: [R] log and Log Histogram
> 
> On Mon, 4 Aug 2008, Alessandro wrote:
> 
> > Hi All,
> >
> >
> >
> > I have a X,Y and Z text file. I wish modify the X
> value in a logarithmic
> > value and to plot  all log(Z) with Histogram. I try
> different code but I
> > have a problem to find the solution.
> >
> 
> My package HyperbolicDist has a log histogram function.
> 
> David Scott
> 
> _________________________________________________________________
> David Scott	Department of Statistics, Tamaki Campus
>  		The University of Auckland, PB 92019
>  		Auckland 1142,    NEW ZEALAND
> Phone: +64 9 373 7599 ext 86830		Fax: +64 9 373 7000
> Email:	d.scott at auckland.ac.nz
> 
> Graduate Officer, Department of Statistics
> Director of Consulting, Department of Statistics
> 
> ______________________________________________
> R-help at 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,
> reproducible code.


      __________________________________________________________________
Ask a question on any topic and get answers from real people. Go to Yahoo! Answers and share what you know at http://ca.answers.yahoo.com



More information about the R-help mailing list