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 <[EMAIL PROTECTED]> wrote: > From: Alessandro <[EMAIL PROTECTED]> > Subject: [R] R: log and Log Histogram > To: "'David Scott'" <[EMAIL PROTECTED]> > Cc: r-help@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:[EMAIL PROTECTED] > Inviato: lunedì 4 agosto 2008 16.30 > A: Alessandro > Cc: r-help@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: [EMAIL PROTECTED] > > Graduate Officer, Department of Statistics > Director of Consulting, Department of Statistics > > ______________________________________________ > R-help@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 ______________________________________________ R-help@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.