search for: plotting

Displaying 20 results from an estimated 20597 matches for "plotting".

2008 Jul 15
1
methods/namespaces/possible bug
Using > methods("plot") [1] plot.Date* plot.HoltWinters* plot.POSIXct* [4] plot.POSIXlt* plot.TukeyHSD plot.acf* [7] plot.data.frame* plot.decomposed.ts* plot.default [10] plot.dendrogram* plot.density plot.ecdf [13] plot.factor* plot.formula* plot.hclust* [16] plot.histogram* plot.isoreg* plot.lm [19] plot.medpolish*
2016 Nov 11
0
.S3methods: issue in content of info data.frame
Hi, I was trying to get a list of S3 method for a given generic, along with the package in which they are defined, and I came across what looks like an issue in the data.frame returned in attribute 'info'. The column 'from' mostly gets the value "registered S3method for ..." except for visible methods. Is this the expected behavior? See code and output below. Thank you.
2011 Aug 26
1
methods() not listing some S3 plot methods...?
Dear List, This may be related to this email thread initiated by Ben Bolker last month: https://stat.ethz.ch/pipermail/r-devel/2011-July/061630.html In answering this Question on StackOverflow http://stackoverflow.com/q/7195628/429846 I noticed that `methods()` was not listing some S3 methods for `plot()` provided by the mgcv package. At the time I wanted to check the development version of R as
2004 May 06
1
plot(hist.default(1:10,plot=F)) error.
Hi! How to find out which plot function is used when i call plot(hist.default(1:10,plot=F)) and all works fine ? The reason why I would like to know it is that after loading some self written R functions > plot(hist.default(1:10,plot=F)) Error in xy.coords(x, y, xlabel, ylabel, log) : x and y lengths differ > traceback() 5: stop("x and y lengths differ") 4: xy.coords(x, y,
2004 May 25
3
problems with plot.formula
With the recent changes in R 1.9.x, it is now impossible to properly call plot on a formula() where the formula is provided via a named first argument. On today's R-1.9.1-alpha: > x <- 1:10 > y <- rnorm(x,0.25) > > plot(x~y) > > plot(x=x~y) Error in terms.formula(formula, data = data) : argument is not a valid model > > plot(formula=x~y) Error in
2024 Jul 05
2
Bug? plot.formula does need support plot.first / plot.last param in plot.default
Is the following a bug in your opinion? I think so. This works as expected: ``` with(mtcars, plot(wt, mpg, plot.first = { plot.window(range(wt), range(mpg)) arrows(3, 15, 4, 30) })) ``` This does not. ``` plot(mpg ~ wt, data = mtcars, plot.first = { plot.window(range(wt), range(mpg)) arrows(3, 15, 4, 30) }) ``` With error: ``` Error in arrows(3, 15, 4, 30) : plot.new has not
2024 Jul 06
1
Bug? plot.formula does need support plot.first / plot.last param in plot.default
? Fri, 05 Jul 2024 14:35:40 +0300 "Erez Shomron" <r-mails at erezsh.org> ?????: > This works as expected: > with(mtcars, plot(wt, mpg, plot.first = { > plot.window(range(wt), range(mpg)) > arrows(3, 15, 4, 30) > })) I think you meant panel.first, not plot.first. At least I cannot find any mention of plot.first in the R source code. In this example,
2011 Feb 21
2
(no subject)
What is plot.new? and how can i get it to work so i can load other data? > library(splancs) > area = 6*4 > lambda = 1.5 > N = rpois(1,lambda*area) > u = runif(N,-2,4) > v = runif(N,0,4) > plot(u,v,asp=1) > h = chull(u,v) > h = c(h,h[1]) > plot(u[h],v[h],"1",asp=1) Error in plot.xy(xy, type, ...) : invalid plot type '1' >
2011 Jul 27
3
?plot: Add an example on how to plot functions to the help of `plot`.
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) =
2008 Feb 27
2
multiple plots per page using hist and pdf
Hello, I am puzzled by the behavior of hist() when generating multiple plots per page on the pdf device. In the following example two pdf files are generated. The first results in 4 plots on one pdf page as expected. However, the second, which swaps one of the plot() calls for hist(), results in a 4 page pdf with one plot per page. How might I get the histogram with 3 other scatter
2009 Oct 03
2
add lines() to 1st plot in layout() after calling 2nd plot()?
Dear R users, I create a graphic with two plots side by side using layout(), like this: layout(matrix(c(1,2),1)) plot(1:10,main="left plot") lines(c(3:7,7:3),col="red") plot(10:1,main="right plot") The lines() obivously get added to the "left plot" plot. Now, I'm trying to write a function that builds up a plot bit by bit to then include it in a
2013 Feb 12
3
improving/speeding up a very large, slow simulation
Dear R help; I'll preface this by saying that the example I've provided below is pretty long, turgid, and otherwise a deep dive into a series of functions I wrote for a simulation study. It is, however, reproducible and self-contained. I'm trying to do my first simulation study that's quite big, and so I'll say that the output of this simulation as I'd like it to be is
2003 Mar 10
1
Problem with example(medpolish) in R-devel
Today's R-devel has a problem in `example(medpolish)'. It appears that the `plot.medpolish' method is not available. Here is the output and traceback() after starting `R --vanilla': > library(eda) > example(medpolish) mdplsh> deaths <- rbind(c(14, 15, 14), c(7, 4, 7), c(8, 2, 10), c(15, 9, 10), c(0, 2, 0)) mdplsh> dimnames(deaths) <-
2009 Nov 20
6
How to add a top level title to multiple plots
How can I add an overall plot title to these four plots? I would like to have something that says, "Distribution Comparisons": par(mfrow = c(2, 2)) # Plot 1 plot(rnorm(10),type="l",col="red") title(main = list(paste("Normal"), ????????????????????????? col="black", cex = 1.0)) # Plot 2 plot(rpois(10,
2005 May 05
2
problem with plot() and R 2.1.0
...dows XP to flash a blue screen and then restart. R version 2.1.0 >plot(x=c(1:100000),y=sin(c(1:100000)), type="l") Windows XP SP2 I installed the precompiled version of R 2.1.0 This isn't the data I was originally trying to graph, but a way to reproduce the error I observed. Plotting without the sin() did not reproduce the error. I realize this might be unique to my system, but I thought I would report the problem and see if anyone else had encountered this difficulty. I have also tried a variety of other plots and those results are summarized below. Other plot() attempts:...
2011 Jan 23
2
feature request: additional hook in plot.new()
Request: An additional hook in plot.new() that is called prior to the call to .Internal(plot.new()). Reason: To allow the hook to set up or modify a graphics device that the new plot will appear in. The code change needed for this is simple - just 4 new lines of R code in src/library/graphics/R/plot.R:plot.new() Current definition of plot.new() in src/library/graphics/R/plot.R: plot.new <-
2012 Dec 11
1
Reassign functions called by other functions in package graphics
I am trying to get a function written in R that calls a cascade of functions from the graphics package, and I want to eventually call replacements to functions in the graphics package instead of the originals. Specifically, I have a function that calls qqnorm in stats, which calls qqnorm.default in stats, which calls plot in graphics, which calls plot.default and plot.new, and I want my own
2011 Feb 21
2
(no subject)
What is plot.new? How can I fix this data or add plot.new so it works? > library(maps) > library(splancs) > area = 6*4 > lambda = 1.5 > N = rpois(1,lambda*area) > u = runif(N,-2,4) > v = runif(N,0,4) > plot(u,v,asp=1) > h = chull(u,v) > h = c(h,h[1]) > plot(u[h],v[h],"1",asp=1) Error in plot.xy(xy, type, ...) : invalid plot type '1' >
2012 Nov 22
1
How to control plotting formula above lm diagnostic plots?
...a = rnorm(20, mean=2, sd=0.2) b = rnorm(20, mean=1, sd=0.4) model=lm(a~b) When I set the page as: par(mfrow=c(1,1), oma=c(1,0,2,0)) and plot my model: plot(model) above all four plots the formula lm(a~b) is printed. What is interesting if I set the page to have two plots per page (still plotting all four using plot(model)), the formula is plotted only above the last two. When I set the page to have one plot per page (still plotting all four using plot(model)) the formula is not printed above any of the plots. Is there any way to control plotting the formula above the diagnostic plots if I...
2012 Nov 27
2
in par(mfrow=c(1, 2)), how to keep one half plot static and the other half changing
Hi, I'm trying to plot something in the following way and would like if you could help: I'd like in a same plot window, two plots are shown, the left one is a bird-view plot of the whole data, the right half keep changing, i.e., different plots will be shown up on request, so that when I select/click on some where in the left plot, the right plot will be the corresponding plot. What I