search for: xylim

Displaying 19 results from an estimated 19 matches for "xylim".

Did you mean: ylim
2020 Sep 30
0
2 KM curves on the same plot
...tomized lines2 function. Now it works! > > It's fun to learn clip(). > > Thanks, > > John > > > On Wednesday, September 30, 2020, 01:47:55 AM PDT, Jim Lemon <drjimlemon at gmail.com> wrote: > > > Hi John, > Hmmm, this works: > > plot(1:10) > xylim<-par("usr") > clip(5,xylim[2],xylim[3],xylim[4]) > lines(10:1) > > so I suspect that there is a "lines" method that resets the clipping > region out of sight. Fortunately Mark Schwartz provided a way to get > your plot so I will give the wall against which I...
2020 Sep 29
5
2 KM curves on the same plot
Hello, Can anyone suggest a simple way to generate a Kaplan-Meier plot with 2 survfit objects, just like this one:? https://drive.google.com/file/d/1fEcpdIdE2xYtA6LBQN9ck3JkL6-goabX/view?usp=sharing Suppose I have 2 survfit objects: fit1 is for the curve on the left (survtime has been truncated to the cutoff line: year 5), fit2 is for the curve on the right (minimum survival time is at the
2009 Oct 20
3
Transparent Bands in R
Hello All, My question is regarding the attached plot. I would like to have multiple transparent green bands running the length (yaxis) of the plot the width of which is determined by the green lines at y=0 in the plot. Can you suggest a way to do it? For those who can't or are unwilling to download the file the plot is at http://www.twitpic.com/ma8w0 Thanks!
2013 Oct 25
1
add a color band
Hi all, I would like to ask your help to add a color band (Ι am not sure regarding the right term, this color band at the right of the plot "describing" values with their corresponding color. For now I have only this code test<-matrix(data=runif(10000),nrow=100) plot(test,axes="FALSE") axis(1,at=c(0,1),labels=c("a","b")) # but  I would like to add
2004 Jun 03
5
Confidence intervals for predicted values in nls
Dear all I have tried to estimate the confidence intervals for predicted values of a nonlinear model fitted with nls. The function predict gives the predicted values and the lower and upper limits of the prediction, when the class of the object is lm or glm. When the object is derived from nls, the function predict (or predict.nls) gives only the predicted values. The se.fit and interval aguments
2009 May 24
2
A question on type="h" plot lines
Dear R users, I need a produce a plot with a single panel and a few lines on it. Each line represents a different data set. The line types must be "h", i.e. ?histogram? like (or ?high-density?) vertical lines. The problem is that the vertical lines comprising a plot line of type="h" are drawn from the y=0 line to the (x, y) locations. What I need is vertical lines drawn from
2006 Feb 10
1
the proper way to use panel functions in lattice package?
...about some argoument matches other arguments. >plot.Map (basemap,xlim=xrange,ylim=yrange,fg=0,ol=8,xlab="",ylab="",panel=function(x,y){ +contourplot(var1.pred~x+y, spcgrid, aspect = "xy",label.style= "align")}) Error in plot.default(xylims$x,xylims$y, asp=1,type="n",...): argument 9 matches multiple formal arguments I also tried to put plotMap() into contourplot()'s panel but plotMap cover up the conour. Maybe, there is something I miss in here. What went wrong there? Also, is there any diffeence between...
2010 Aug 24
4
how to plot y-axis on the right of x-axis
Dear List, I have a richness data distributing across 20 N to 20 S latitude. (120 E-140 E longitude). I would like to draw the richness in the north hemisphere and a regression line in the plot (x-axis: latitude, y-axis: richness in the north hemisphere). The above demand is done using plot. Then, south hemisphere richness and regression are required to be generated using the same y-axis above
2010 Apr 14
4
how to draw multiple vertical bands
hi R gurus I saw some graphs with vertical band like this one: http://pragcap.com/wp-content/uploads/2010/04/GS.png how to draw the blue band in R, can't find any clue to do this,any ideas? thanks in advance [[alternative HTML version deleted]]
2008 Sep 24
3
Changing a plot
Hello list, I've been working on this problem for a while and I haven't been able to come up with a solution. I have a couple of functions that plot a bunch of data, then a single point on top of it. What I want is to be able to change the plot of the point without replotting all the data. Consider the following example: x = rnorm(100,1,0.5) y = rnorm(100,1,0.5) plot(x,y,pch=16)
2017 Jun 14
4
[FORGED] Re: draw stripes in a circle in R
...> > First get code for draw.circle: > > ------ > > draw.circle # then copy to console and edit > > draw.circle2 <- function (x, y, radius, nv = 100, border = NULL, col = NA, lty = 1, > density=NA, angle=45, lwd = 1 ) > { > xylim <- par("usr") > plotdim <- par("pin") > ymult <- getYmult() > angle.inc <- 2 * pi/nv > angles <- seq(0, 2 * pi - angle.inc, by = angle.inc) > if (length(col) < length(radius)) > col <- rep(col, length.out =...
2017 Jun 14
0
draw stripes in a circle in R
...e angle and density arguments don't get passed in: First get code for draw.circle: ------ draw.circle # then copy to console and edit draw.circle2 <- function (x, y, radius, nv = 100, border = NULL, col = NA, lty = 1, density=NA, angle=45, lwd = 1 ) { xylim <- par("usr") plotdim <- par("pin") ymult <- getYmult() angle.inc <- 2 * pi/nv angles <- seq(0, 2 * pi - angle.inc, by = angle.inc) if (length(col) < length(radius)) col <- rep(col, length.out = length(radius)) for (circle in...
2017 Jun 14
0
[FORGED] Re: draw stripes in a circle in R
...t;> First get code for draw.circle: >> ------ >> draw.circle # then copy to console and edit >> draw.circle2 <- function (x, y, radius, nv = 100, border = NULL, col = NA, lty = 1, >> density=NA, angle=45, lwd = 1 ) >> { >> xylim <- par("usr") >> plotdim <- par("pin") >> ymult <- getYmult() >> angle.inc <- 2 * pi/nv >> angles <- seq(0, 2 * pi - angle.inc, by = angle.inc) >> if (length(col) < length(radius)) >> col <- rep...
2017 Jun 14
3
draw stripes in a circle in R
> On Jun 14, 2017, at 9:46 AM, Jeff Newmiller <jdnewmil at dcn.davis.ca.us> wrote: > > I don't see a question. If your question is whether R supports pattern fills, AFAIK it does not. If that is not your question, ask one. > -- > Sent from my phone. Please excuse my brevity. > > On June 14, 2017 7:57:41 AM PDT, jean-philippe <jeanphilippe.fontaine at
2017 Jun 15
2
[FORGED] Re: draw stripes in a circle in R
...aw.circle: >>> ------ >>> draw.circle # then copy to console and edit >>> draw.circle2 <- function (x, y, radius, nv = 100, border = NULL, >col = NA, lty = 1, >>> density=NA, angle=45, lwd = 1 ) >>> { >>> xylim <- par("usr") >>> plotdim <- par("pin") >>> ymult <- getYmult() >>> angle.inc <- 2 * pi/nv >>> angles <- seq(0, 2 * pi - angle.inc, by = angle.inc) >>> if (length(col) < length(radius)) >>&g...
2017 Jun 14
1
[FORGED] Re: draw stripes in a circle in R
...> > First get code for draw.circle: > > ------ > > draw.circle?? # then copy to console and edit > > draw.circle2? <- function (x, y, radius, nv = 100, border = NULL, col = NA, lty = 1, >???????????????????????????? density=NA, angle=45,? lwd = 1 ) > { >????? xylim <- par("usr") >????? plotdim <- par("pin") >????? ymult <- getYmult() >????? angle.inc <- 2 * pi/nv >????? angles <- seq(0, 2 * pi - angle.inc, by = angle.inc) >????? if (length(col) < length(radius)) >????????? col <- rep(col, length.out =...
2017 Jun 15
1
draw stripes in a circle in R
...in: > > First get code for draw.circle: > > ------ > > draw.circle # then copy to console and edit > > draw.circle2 <- function (x, y, radius, nv = 100, border = NULL, col = NA, lty = 1, > density=NA, angle=45, lwd = 1 ) > { > xylim <- par("usr") > plotdim <- par("pin") > ymult <- getYmult() > angle.inc <- 2 * pi/nv > angles <- seq(0, 2 * pi - angle.inc, by = angle.inc) > if (length(col) < length(radius)) > col <- rep(col, length.out =...
2017 Jun 15
0
[FORGED] Re: draw stripes in a circle in R
...------ >>>> draw.circle # then copy to console and edit >>>> draw.circle2 <- function (x, y, radius, nv = 100, border = NULL, >> col = NA, lty = 1, >>>> density=NA, angle=45, lwd = 1 ) >>>> { >>>> xylim <- par("usr") >>>> plotdim <- par("pin") >>>> ymult <- getYmult() >>>> angle.inc <- 2 * pi/nv >>>> angles <- seq(0, 2 * pi - angle.inc, by = angle.inc) >>>> if (length(col) < length(radi...
2010 Apr 15
4
Does "sink" stand for anything?
Hello Everyone,   Learning about R and its wonderful array of functions. If it's not obvious, I usually try to find out what a function stands for. I think this helps me remember better.   One function that has me stumped is "sink." Can anyone tell me if this stands for something?   Thanks,   Paul         __________________________________________________ [[alternative HTML