Dear R folks,
currently the section Examples contains the following as an example on how to plot a “normal” function. plot(sin, -pi, 2*pi) Since it does not contain the argument for the function it would be helpful to add for example the following. ## plots the graph of f(x) = x**2 with f(x) ∈ [1, 10] curve(x**2, 1, 10) ## plots the graph of f(x) = x**3 with f(x) ∈ [1, 10] and adds it to an already existing plot curve(x**3, 1, 10, add=T) ## plots the graph of f(x) = x**4 connected by lines and adds it to an already existing plot lines(x, x**4, add=T) `curve` and `lines` could be also added to the section See Also. Thanks, Paul
signature.asc
Description: This is a digitally signed message part
______________________________________________ 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.