similar to: R 1.5.0: axis() does not honor the xaxp argument (PR#1654)

Displaying 20 results from an estimated 800 matches similar to: "R 1.5.0: axis() does not honor the xaxp argument (PR#1654)"

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
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 >
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)
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
2006 Nov 30
1
strange error from R CMD check about xaxp
Dear R-devel, Kurt had alerted me to the problem that the randomForest package that I maintain has been failing 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
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:
2007 Nov 20
2
Logarithmic axis
Hi there, I guess this must be a standard issue, but I'm starting to go crazy 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
2005 Nov 10
2
make check failed on linux-amd64 using PGI compilers
Dear R-help, I am trying to build R-2.2.0-patched (2005-11-07 r36217) on the head node of a Scyld cluster (dual Opteron 250s) using PGI compilers (v6.0). I used the flags suggested by 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,
2005 Feb 23
6
Getting tick positions
While writing a function that includes placing grid lines at the same position as the axis ticks, I found that the axis* functions don't return anything. Thus I have had to copy the appropriate function, removing the call to axis() and adding a line to return the tick positions. Is there a more elegant way to determine the tick positions on an axis? Thanks. Jim (normally bitwrit at
2004 Feb 19
3
suppressing non-integer labels for plot x-axis
Dear R-helpers, I am having difficulty making 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);
2006 Jan 28
0
Your false remark on PR#1654
The comment says `Works in 2.3.0: BDR fixed inline [xy]axp' and 2.2.1 is not 2.3.0. Your example is not reproducible, so we cannot check. If you get a copy of R-devel (as the FAQ and posting guide ask you to before posting) you can check for yourself. Please do study the FAQ and avoid time-wasting. On Sat, 28 Jan 2006 cain at u.washington.edu wrote: > Full_Name: Kevin Cain >
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 <-
2010 Jun 13
1
Break in the y-axis
Hello all, I have been having trouble getting a break in my y-axis. All of my data points are up around 100-200, but the graph has to start at zero, so i would like to remove all the white space using a break symbol. I have been able to get the break and labels to be correct, however, I can't seem to get the data to match the axis anymore. I must be using the axis.break() in plotrix
2008 Jun 16
2
in axis() suppressing axis line but keeping tick marks
I've been trying to figure out a parameter that will let you separately adjust the parameters for the axis line from the tick mark. In the following example, I would like to suppress the axis line, but keep the tick marks. Thanks, Andrew foo <- data.frame(x=1:3, y=4:6) plot(foo$x, foo$y, type="n", axes=F) points(foo$x, foo$y) axis(side=1, at=foo$x, lty=0) #would like to figure
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
2004 Jan 22
4
Axes Ticks
Apologies, basic question on plot. y <- c(-4,3,-2,1); x <- c("time 1", "time 2", "time 3", "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,
2003 Jun 19
3
Background color(s) for groupedData plot
I've been using par() to check the graphics parameters associated with both plot(<fitted linear model>) and plot(<grouped data object>). AFAIK the only differences are in the $cxy, $usr, $xaxp, and $yaxp parameters but the background color for the grouped data plot is grey while the linear model plot has a white background. When I've tried par(bg = "white") prior to
2010 Jun 05
1
Error Bar Issues
Hello all, I am an undergraduate student who is having syntax issues trying to get error bars on my graph. This is the data, which I assigned the name "Saline" to. Time Average SEM 1 -20 0.000000 0.0000000 2 3 30 0.000000 0.0000000 4 45 3.227902 0.7462524 5 60 5.066664 1.1623944 6 80 6.107491 1.5027762 7 110
2007 Aug 17
2
Date format on x-axis
Dear R users, Plotting question from a R beginner... When I try to plot a response through time, for example: >Date<-c("2006-08-17", "2006-08-18", "2006-08-19", "2006-08-20") >response<-c(4,4,8,12) >as.Date(Date) >plot(Date,response) The dates on the graphic appear in spanish. This I guess is the default way of plotting because my
2013 Jan 08
4
error in a abline loop
Hello I have data of body length and body weight of people of different skin colors. I tried to write a code to plot body length and body weight according to the skin colors. (Thanks for Petr's advice so far.) A loop is used but an error shows up in the following code. It says: unexpected '}' in "