Skip to content
Prev 200747 / 398503 Next

error message; ylim + log="y"

It can plot log axis from 1 to 10, but that is not what you are plotting.
Your ylim includes 0, and you cannot do log(0).  

This will draw the plotting frame that you want:

plot(c(),c(), xlim=c(1,10), ylim=c(1,10), log="y")

Ravi.

----------------------------------------------------------------------------
-------

Ravi Varadhan, Ph.D.

Assistant Professor, The Center on Aging and Health

Division of Geriatric Medicine and Gerontology 

Johns Hopkins University

Ph: (410) 502-2619

Fax: (410) 614-9625

Email: rvaradhan at jhmi.edu

Webpage:
http://www.jhsph.edu/agingandhealth/People/Faculty_personal_pages/Varadhan.h
tml

 

----------------------------------------------------------------------------
--------


-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
Behalf Of Martin Batholdy
Sent: Wednesday, November 18, 2009 5:32 PM
To: r help
Subject: Re: [R] error message; ylim + log="y"
Well, I get the same error messages when I use real data.
So it has to do with the ylim-values specified.
When I get rid of the ylim argument definition it does work.


But why?
I don't understand why R can't plot a logarithmic y-axis from 1 to 10.000.
It doesn't need data for that, does it?




Am 18.11.2009 um 23:19 schrieb jim holtman:
why;
http://www.R-project.org/posting-guide.html
______________________________________________
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.