search for: xaxp

Displaying 20 results from an estimated 84 matches for "xaxp".

Did you mean: axp
2002 Jun 04
4
par(xaxp)
I think this is a bug; at least this behavior is not documented in plot or plot.default. plot.default resets xaxp, and leaves xaxp reset when it exits: par(xaxp=c(0,1,4)) print(par("xaxp")) plot(c(0,1),c(0.2,0.3)) print(par("xaxp")) R. Woodrow Setzer, Jr. Phone: (919) 541-0128 Experimental Toxicology Division Fax: (919) 54...
2002 Aug 20
2
Reset par(xaxp) in plot
R-Helpers; This seems simple to set graphic parameter, but I tried plot a graph with 10 intervals in x axis with par(xaxp = c(0, 150, 10) but to no avail: par(xaxp =c (0, 150, 10)) plot(age, y18, type="n", ylab="Height (m)", xlab=" age (Yrs)", font = 2) lines(age, y6, lty = 4, lwd = 2) lnes(age, y10, lty = 1, lwd =2) lines(age, y14, lty = 2, lwd =2) lines(age, y18, lty = 3, lwd =...
2002 Mar 10
1
xaxp and yaxp
Hello, I'm new to R, and I'm trying to set the number of tickmarks for a plot using xaxp, but R seems to ignore this setting completely. Maybe you've an idea what I'm doing wrong. I'm using R 1.4.1, and here's hat I'm doing: > d[,'seq'] [1] 28913 16323 13922 6237 4257 3881 4100 3781 2694 2064 1769 1550 [13] 1539 480 > d[,'scop.dup.ra...
2000 Apr 26
1
xaxp with dates
Dear friends. As promised ver 1.01 solved the former problem and now dates plot OK in windows. But. In the following code, "cex.axis"=0.5 works OK but "xaxp"=c(14620,14680,4) has seemingly no effect. The limits for xaxp was found from the default plot and inspecting par(). I need to put the date marks at specific points. Could I suppress them altogether and make a new xaxis corresponding to the points ? Was xaxp not intended in this way ? Than...
2002 Jun 11
1
R 1.5.0: axis() does not honor the xaxp argument (PR#1654)
...rative project with many contributors. Type `contributors()' for more information. Type `demo()' for some demos, `help()' for on-line help, or `help.start()' for a HTML browser interface to help. Type `q()' to quit R. > plot(c(0,1),c(0.2,0.3),xaxt="n") > axis(1,xaxp=c(0,1,4)) > version _ platform i586-pc-linux-gnu arch i586 os linux-gnu system i586, linux-gnu status major 1 minor 5.0 year 2002 month 04 day 29 language R > ------------------------end transcript --------------------- I expect only 4 intervals on the...
2007 Nov 20
2
Logarithmic axis
...y with it. I simply want a plot with the x axis being logarithmic, having labels 1, 10, 100..., and ten unlabelled ticks between each of them - just as they introduce logarithmic axis at school. I've played around a bit with log="x", xlog=T (where exactly is the difference here?), xaxp, and xaxt (unfortunately xaxt="l" isn't implemented). The best I get is a plot with an axis having a single 100 and nothing else... here is what I've tried: pdf(file="kennlinien.pdf"); par(log="x", xlog=TRUE); kennlinie1 <- c(8.0746909, 3.9916973, 9.978...
2002 May 03
0
copy or save to metafile from graphics device shrinks plots (PR#1507)
...e="n",bty="n", axes=FALSE,xlab="",ylab="") filled <- occupied == 1 points(easting[filled],northing[filled], pch=19,cex=log10(area[filled])) points(easting[!filled],northing[!filled], pch=21,cex=log10(area[!filled])) detach(2) plot.limits <- par(c("xaxp","yaxp")) segments(plot.limits$xaxp[1],plot.limits$yaxp[2], plot.limits$xaxp[1]+100,plot.limits$yaxp[2],lwd=3) text(x=plot.limits$xaxp[1]+50,y=plot.limits$yaxp[2]-5,adj=c(0.5,1),labels=c("100 m")) mtext("B",side=2,cex=2,las=2,at=par("yaxp")[2]) attach(...
2002 Aug 20
0
Sum: Reset par(xaxp) in plot
Many thanks to Peter Dalgaard BSA and Uwe Uwe Ligges for their prompt responses. It turns out xaxp can not be set by par(xaxp = c(x1, x2, n)) as indicatedd in Help for 'par' document. Both pointed me to the right direction by setting axes = F or xaxt = "n" in plot() and using axis(1, seq=c(0,150,15)) to produce an axis with desired intervals. Richard My original question:...
2006 Nov 30
1
strange error from R CMD check about xaxp
...iling checks in R-devel. However, I just can't see why or where it's failing. I'd very much appreciate any pointer. The failure occur when running the example code in varImpPlot.Rd: > varImpPlot(mtcars.rf) Error in par(opar) : invalid value specified for graphical parameter "xaxp" Execution halted However, I do not have "par(opar)" or set xaxp anywhere in any of the .Rd or .R files in the package. In varImpPlot(), I used the construct: if (nmeas > 1) { op <- par(mfrow=c(1, 2), mar=c(4, 5, 4, 1), mgp=c(2, .8, 0), oma=c(0,...
2005 Nov 10
2
make check failed on linux-amd64 using PGI compilers
...Jennifer Lai on R-devel (taken from R-admin, except that I had to add -L/usr/X11R6/lib64 to LDFLAGS). The build went fine, but make check-all failed when running tests/Examples/graphics-Ex.R, at: > plot(1:2, xaxs = "i") # 'inner-axis' w/o extra space > stopifnot(par("xaxp")[1:2] == 1:2 && + par("usr")[1:2] == 1:2) Error: par("xaxp")]1:2] == 1:2 && par("usr")[1:2] == 1:2 is not TRUE The above looks a bit strange to me, as running the R built as above, par("xaxp")[1:2] - 1:2 gives [1] -1.110223e-...
2004 Feb 19
3
suppressing non-integer labels for plot x-axis
...king R plot only integer labels on the x-axis of a simple graph. I want to plot the median values of a score on each of three occasions. Non-integer occasions are impossible. But, R keeps labelling the x-axis with half-occasions, despite my attempts to stop this using the "xaxs" and "xaxp" parameters of 'plot'. p1=c(1,2,3); p2=c(5,15,25) plot(p1,p2,xlab='Occasion', ylab='Score', xlim=c(1,3), ylim=c(0,30), xaxp=c(1,3,3), xaxs='r') Could someone let me know how to suppress the non-integer labels? Thanks Jonathan Williams OPTIMA Radcliffe Infirm...
2002 Jun 21
2
Load prediction
Hello, This is perhaps more of a regression question than R, but I am learning both, so would appreciate your wisdom here. I have some data which reflects power load for an electrical generating system, with some temporal features. The data fields look like this: D,MON,DAY,YR,HR,WDAY,DRYBULB,WETBULB,LOAD 4455 5 13 92 13 4 70 63 1617 4456 3 9 92 13 2 73
2010 Oct 11
2
(senza oggetto)
? stato filtrato un testo allegato il cui set di caratteri non era indicato... Nome: non disponibile URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20101011/7fd9c9d5/attachment.pl>
2002 May 03
1
copy or save of plots (PR#1507)
On Fri, 3 May 2002 drew.tyre@csiro.au wrote: > Full_Name: Drew Tyre > Version: 1.4.0 > OS: Win 2000 > Submission from: (NULL) (140.253.74.225) > > > When creating a rather complex plot, the resulting figures 'shrink' when either > copied to the clipboard or saved as a metafile using the GUI menu. Also saving > as postscript or pdf causes the same problem, as
2000 Jun 02
3
graphical parameters in plot
I'm using plot to make a simple plot but I want to control where the tick marks go on bot axes. The graphical parameters xaxp and yaxp seem to be ignored by the plot function so I tried setting them using op <- par(no.readonly=T) par(xaxp=c(-2.4,-2.2,5), yaxp=c(-2500,10000,6)) plot(...) par(op) but they are still ignored. Next I tried to use the axis function as follows op <- par(no.readonly=T) par(xaxt="n&quo...
2010 Feb 02
2
Plot - specification for grid of x axis
Dear all, I have a simple question for which I cannot find the answer. I need to make an easy plot, but for the x axis I need to be able to specify by myself the division of x axis from x[,1] either every single observation, or every 5th, or 10th or 20th x <- matrix(data=NA, nrow=100, ncol=2) x[,1]<-seq(1,100,1) x[,2]<-rnorm(100) Thanks a lot for your help!!! [[alternative HTML
2011 Mar 24
1
Help needed with plot axis labeling
I have looked at many examples and tried many different combinations of doing this, but with no luck. I have something like this: plot(1:10, xaxt = "n") axis(1, xaxp=c(2, 9, 7)) axis(4) but, what I need is to have different labels for axis-4 than those for axis-2 (the vertical axes) ? that is, rather than 2,4,6,8,10 for both the left and right vertical axes, I need A,B,C,D,E on the right ? but at the same tick locations as those on the left. I have tried us...
2010 Jun 13
1
Break in the y-axis
...quot;, "5", "6", "7", "8", "9", "10", "11")) ####plotted data with error bars plotCI(x=Saline [,1],y=Saline [,2], uiw=Saline [,3], err="y", pt.bg=par("bg"),pch=19, cex=2.5 ,gap=0, sfrac=0.005, xlim=c(-20,340),xaxp=c(-20,320,12), xlab="Time (min)", ylim=c(0,200),yaxp=c(0,200,10), ylab="Arterial Plasma\nGlucose (?g/mL)", las=1, axes=FALSE, font.lab=2.2,cex.lab=1.6) plotCI(x=Ex [,1],y=Ex [,2], uiw=Ex [,3], err="y",pt.bg="white",pch=21, col="black",cex=2.5 ,g...
2004 Jan 22
4
Axes Ticks
...quot;, "time 4"); plot(x,y, type="b"); of course fails. x <- 1:4 makes it succeed, but then I have too many ticks on my X axis. I want exactly 4 tickmarks. It would also be nicer if I could name the ticks. I looked at ?par and Venables&Ripley, and tried the lab and xaxp parameters. I could not figure out how to use them productively. could someone please let me know? help appreciated. /iaw
2001 Jan 30
1
screen can't go back to log="y" plot (PR#831)
[I have abbreviated the subject as jitterbug has been having probems with long subjects.] The issue here is that one cannot mix log/non-log axes in the calls to screen(), as the appropriate par() parameter is read-only, but the meaning of yaxp depends on it. But beyond that you can't set x/yaxp for log axes. You should be able to do this: you can in the S original. A simpler version: plot