[R] pch and curve plotting

Peter Malewski y0004379 at tu-bs.de
Wed Aug 9 18:32:36 CEST 2000


On Wed, 9 Aug 2000, Margaret Riordan wrote:

> Problem 1:
> When I use pch to place a symbol onto a plot it seems to place the point
> a little off the exact location. I have read the help file for this
> which says to use "." as the plotting character, which will then produce
> centered points but I am unclear as to how to do this.


plot(rnorm(100),rnorm(100),pch=".")


> Problem 2: How do I get R to draw a curve through a number of data
> points rather than a straight line. From the description of the
> functions scatter.smooth and loess.smooth, I think they are what I'm
> looking for,
> but when I try to run them in R Version 1.1.0, it returns the following
> error
> Error in sdgraph() : couldn't find function "scatter.smooth"

it's in library(modreg) ...


Peter



** To YOU I'm an atheist; to God, I'm the Loyal Opposition. Woody Allen **
P.Malewski					Tel.: 0531 500965
Maschplatz 8					Email: P.Malewski at tu-bs.de
************************38114 Braunschweig********************************

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list