similar to: plot function

Displaying 20 results from an estimated 3000 matches similar to: "plot function"

2009 May 24
1
filling area under a function line
Hi R collective, I quite like the "curve" function because you can chuck a R function into it, and see the graph in one line of R. I had a google and found some threads for filling under the line; http://tolstoy.newcastle.edu.au/R/e2/help/07/09/25457.html However they seem to miss the point of the simplicity of going, "I wonder what that looks like, and can I have some colour
2007 Dec 09
1
buglet in curve?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Symptoms: curve with log x axis gets the wrong x limits (in 2.6.1, I believe introduced in this version). Credit goes to Mike McCoy for detecting the problem. Demonstration: x = 1:5 plot(x,5*exp(-x),xlim=c(0.1,1000),log="x") xvec = 10^seq(-1,3,length=100) lines(xvec,5*exp(-xvec)) curve(5*exp(-x),add=TRUE,col=2,lwd=3) I believe
2001 Apr 30
2
plotting an expression
I am sure it is just me not understanding how R works, but could somebody explain why curve(cos(x)) works and curve(expression(cos(x)) does not? I have done some investigating and here is what I found. If I comment out the line of curve indicated below, both calls work fine. function (expr, from, to, n = 101, add = FALSE, type = "l", ylab = NULL, log = NULL, xlim =
1997 May 11
2
R-alpha: Logarithmic scales
Here are another three problems with logarithmic scales: 1) segments() does not work with logarithmic scales. I suggest to change lines 962-973 in "plot.c": for (i = 0; i < n; i++) { if (FINITE(xt(x0[i%nx0])) && FINITE(yt(y0[i%ny0])) && FINITE(xt(x1[i%nx1])) && FINITE(yt(y1[i%ny1]))) { GP->col = INTEGER(col)[i % ncol];
2002 Nov 13
2
Wandering usr values in par(no.readonly=TRUE) (PR#2283)
>>>>> "Marc" == Marc Schwartz <mschwartz@medanalytics.com> >>>>> on Wed, 13 Nov 2002 11:01:49 -0600 writes: Marc> Marc Schwartz wrote: >> SNIP >> >> I am guessing that this may be the result of par("ylog") >> and par("xlog") being read only and perhaps impacting the >>
2003 Mar 04
2
log axis assignment
Hi again, another problem: This (below) isn't working and as far as I can see it damn well should. What I'm trying to acomplish is to run several data sets through the same graphing procedure, but for the pH data use a log y axis. using this code all graphs are drawn with a linear axis. Surely I should be able to set the ylog option to T using another object (logaxis). for (n in
2000 Mar 21
5
par help wrong: xlog & ylog (PR#497)
Full_Name: Version: 1.0.0 OS: linux Submission from: (NULL) (193.62.250.209) ?par lists and describes xlog and ylog, though these are obsolete. It does not list log. I found out about log from ?plot.defaults--so that help is OK. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send
1997 May 09
0
R-alpha: plot, axis & log
The following commands crash: > plot(1:4,axes=F,log="x") > axis(1,c(1,2,3,4)) zsh: segmentation fault R Lines 35-37 of axis(): 35: else { 36: ind <- (usr[1] <= at & at <= usr[2]) 37: } should be replaced by else { if (log) ind <- (10^usr[1] <= at & at <= 10^usr[2])
2001 Nov 29
1
rug(x) clip warning incorrect if par("xlog")==TRUE (PR#1188)
To wit: > plot(1:2,1:2,log="x") > rug(1:2) # should not warn Warning message: some values will be clipped in: rug(1:2) > plot(1:2,1:2,log="x") > rug(c(0,.1,.2)) # should warn, but does not > I believe this fixes the problem: % diff -c /tmp/orig.rug.R /tmp/cberry.rug.R *** /tmp/orig.rug.R Thu Nov 29 12:59:00 2001 --- /tmp/cberry.rug.R Thu Nov 29
1998 May 10
2
R-beta: Re: R (par)
1) 'par' doesn't seem to be called from 'plot', as it is in S. I was able to get the plot to work with: par(mar=c(5,5,5,5)) plot(a,b) axis(4,labels=F,tck=0.1) mtext("blabla",side=4,line=3,cex=1.5) NOTE: I tried this on the x11() display, which seemed to reproduce the problem you described. 2) ?? I was unable to get either x or y logarithmic axes using
1997 May 21
1
R-alpha: plot(1); axis(1, at=10) >>> Seg.fault -- and a patch
This problem has been mentioned by Arne Kovac <maak@stats.bris.ac.uk> on May 9-10. The patch is really a replacement of 'axis' in RHOME/src/library/base/funs/ It contains the fixes which where proposed Arne Kovac and fixes (all?) the errors he/she (?) reported on May 9. "axis" <- function (which, at, labels = TRUE, ...) { if (which%%2 == 1) { axp <-
2009 Mar 21
1
Forestplot () box size question
Hi All, I have been able to modify the x-axis to start at zero by adding xlow and xhigh parameters; that was pretty simple. I have been unable to find the location of the code that would turn off the information weighting of the box size (I have smaller randomized trials getting less weight than a much larger non-randomized trial). The function is forestplot() from rmeta. Thanks for any
1998 Mar 26
0
S programming style & "missing(.)" [was "regarding bugs in barplot" on R-core]
[The part about S (S-plus and R being dialects of S) programming (at the end) makes me cc'ing this to R-devel. MM] On R-core, >>>>> "Paul" == Paul Murrell <paul@stat.auckland.ac.nz> writes: Paul> hi (i) the problem with the positioning of the legend in your Paul> barplot example: Paul>
1997 Oct 18
0
R-alpha: This weeks bugs and requests for enhancements
Here's a number of items that came up in connection with my course for medical ph.d. students this week: boxplot(): - deals ungracefully with empty groups and factor levels not present in grouping variable. - no indication of what variable is being plotted data.entry() (mostly W95 rseptbeta problems) - Entry of first variable name doesn't take before 2nd
2009 Apr 04
0
split.screen bug and patch
I hope it's OK to post a bug report, and a possible patch, on this list. Introduction ======= The split.screen() docs suggest that users should not return to a screen after it has been drawn, and that curious errors may result from doing so. This is clear from the test file I put below. However, I have found that this test file will work properly, with a tiny change to the split.screen
2008 Mar 09
2
[patch] add=TRUE in plot.default()
Hi all, As long as I've used R, add=TRUE hasn't worked in contexts like this: f <- function(x) x^2 X <- seq(0, 1, by=1/4) plot(f, col="blue") plot(X, f(X), col="red", type="l", add=TRUE) I attached a fix for version 2.6.2. Cheers, Andrew -------------- next part -------------- diff --git a/src/library/graphics/R/plot.R
2007 Mar 31
0
X11 and linux and plotting and the vertical axis
I use R on linux and I go through exceed from a windows machine. Depending on the amount of plots I do on a screen, sometimes the numbers on the vertical axis of the plots don't show up. I tried infinite of combinations of mar and cex but nothing helps. Yet, if instead of shooting the graphic upto the screen, I send it to a pdf file or a postscript file, the numbers on the vertical axis of
2003 May 24
1
help with xyplot
Hi, I make a graphic using xyplot, it is very good. xyplot((ocorrencia/isca)~frag|especie) But I need to plot a curve for each especie's plot. I try to use panel.abline and others panel., but I dont succeed. I need to plot the function exp(a+b*x+c*x^2)/1+exp(a+b*x+c*x^2), a b and c are different for each especie. Normally I use the curve function to add a curve in a points
2010 Apr 29
1
Request - adding recycled "lwd" parameter to polygon
Hello dear members of R-help and R-core mailing list, I am not sure if this request is a "ticket" that should be filled somewhere outside the mailing list. If so, I apologize for not doing and would like to know where I should have filled it. And to the subject matter: I would like to use a command like this: plot(c(1,8), 1:2, type="n") polygon(1:7, c(2,1,2,NA,2,1,2),
2010 Apr 29
1
Request - adding recycled "lwd" parameter to polygon
Hello dear members of R-help and R-core mailing list, I am not sure if this request is a "ticket" that should be filled somewhere outside the mailing list. If so, I apologize for not doing and would like to know where I should have filled it. And to the subject matter: I would like to use a command like this: plot(c(1,8), 1:2, type="n") polygon(1:7, c(2,1,2,NA,2,1,2),