Displaying 20 results from an estimated 81 matches for "yaxp".
Did you mean:
axp
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 (1:2, 1:2, log="y", main="1")
zz <- par("yaxp")
zz
[1] 1 2 -5
par(yaxp=zz)
Error in par(yaxp = zz) : invalid...
2002 May 03
0
copy or save to metafile from graphics device shrinks plots (PR#1507)
...#source("C:/Program Files/R/rw1040/library/Aus/source.q")
#win.metafile("mapfigure.emf")
par(mfrow=c(2,2),mar=c(5.1,4.1,0.1,0.1))
Aus()
hermit.hill <- list(x=136.8314,y=-30.02850)
points(hermit.hill,pch="*",cex=2)
mtext("A",side=2,cex=2,las=2,at=par("yaxp")[2])
attach(sulphuric.accepta)
plot(easting,northing,type="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...
2011 Feb 11
1
How to compute "yaxp" and "usr" without plotting ?
Dear all,
I'd like to know how I could compute the parameters "yaxp" and (the y
components of) "usr" without having to plot the data first. Note that
"ylim" is /a priori/ fixed.
The aim is to automatically adjust the parameter "mgp" without having to
make the plot twice. Then, with "yaxp" and "usr" known, i...
2011 Apr 23
3
Problem having tick marks aligned when plotting three graphs on top of one another.
R 2.10
Windows 7
I am trying to plot three graphs on top of each other. I need to have the axises perfectly aligned. For some reason the ticks on the y axes are slightly off so they do not perfectly align. Can someone tell me how I can get the to overlay each other perfectly? I thought the yaxp parameter would solve my problem, but it does not. My data and code follows:
> summaryresults[1:20,]
Slope PctCont PctCat PctTTst
[1,] 0.05 7.4 5.6 6.3
[2,] 0.10 17.7 11.3 13.3
[3,] 0.15 32.7 18.7 25.6
[4,] 0.20 53.3 27.5 40.2
[5,] 0.25 72.1...
2009 Jul 25
1
yaxp problem for more irregular time series in one plot
...ariables I need logaritmic y axis.
The code I use is the following:
nvz_3_data <- read.csv('/home/tomas/R_outputs/nvz_3.csv')
date <- (nvz_3_data$date)
NO3 <- (nvz_3_data$NO3)
NH4 <- (nvz_3_data$NH4)
date_p <- as.POSIXct(date, "CET")
par(mfrow=c(2,1), ylog = TRUE, yaxp = c(0.01, 100, 3))
plot(date_p, NO3, log = "y", type = "l", col = "darkred", main = "NVZ-1",
xlab = "time", ylab = "NO3-" )
lines(date_p, NH4, col = "darkblue", lty = "dotted")
plot(date_p, NH4, log = "y", typ...
2004 Mar 27
0
par("yaxp") linear versus log tick mark coordinates
As a linear axis I obtain the correct number of intervals
for the tick marks.
> source("test-lin.r")
> par("yaxp")
[1] 0 20000 4
However log returns 1?
> source("test-log.r")
> par("yaxp")
[1] 1 10000 1
>
I'll use log10(par("yaxp")[2]) for now.
I was wondering why '1' is returned instead of 4.
Thx.
2005 Jun 28
2
axTicks on a reverse ylog plot (PR#7973)
There is still issues with the reversed y-log scale plot:
# Test case A: works as expected
plot(10:100,log="y",ylim=c(100,11))
grid()
par("yaxp")
# Test case B: grid does not have horizontal lines; par("yaxp") is
different
plot(1:100,log="y",ylim=c(100,10))
grid()
par("yaxp")
In the second test case, axTicks for the horizontal lines (in grid())
returns numeric(0) for spacing ... how do the tick mark...
2009 Jan 11
1
boxplots: yaxp does not work
Hi,
I'd like to change the y-tickmarks of a boxplot.
But it doesn't work with yaxp (like I would do it in a plot-function).
Can someone help me out?
2010 Oct 11
2
(no subject)
Dear List,
I am trying to plot date vs. time, but am having problems getting my y-axis
labels how I want them.? When left on its own R plots time at 6 hour intervals
from 03:00 to 23:00.? I am wanting 6 hour intervals from 2:00 to 22:00.? I
realize yaxp doesn't work in plot(), so I am trying to get it to work in par().?
However, now I get the ticks where I want them but the time is output as a very
big number (serial time?).? I have also tried axis() using at= and also get
seriel time numbers.? Any suggestions on how to format time on an ax...
2011 Apr 26
0
Immutable ticks using ts.plot?
...ad.csv("F:/mydata.csv"), start=2000, end=2010, freq=1)
opar = par()
plot(fig_data, ann = FALSE, plot.type = "multiple", yaxt='n',xaxt = "n", panel=function(...){
? for (i in 1:4){
??? if (i == 1){
????? ts.plot(fig_data[,i],lwd=3,col="red", gpars=list(yaxp=c(80,90,2),xaxt = 'n', ann=FALSE))
????? abline(v=2007, lty = "dashed", col = "grey")
??? }
??? if (i == 2){
????? ts.plot(fig_data[,i],lwd=3,col="green", gpars=list(yaxp=c(65,75,2),xaxt = 'n', ann=FALSE))
????? abline(v=2007, lty = "dashed",...
2013 Jun 06
3
agrandar (estirar..) el eje de las ordenas
Quisiera agrandar el eje de ordenadas en un diagrama de lineas.. para
que haya más espacio entre punto y punto y "se noten mejor las
diferencias"...
¿alguna sugerencia?
--
Antonio Maurandi
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
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
>
2003 Jul 21
1
doubt about graphics
...- c(1:11)
y <- seq(245,445,20)
I make a plot
plot(x,y)
The first y value in y axis is 250 and the last y valeu is 450, the spacing
between values are 50, so the y values showed are: 250, 300, 350, 400, 450
I need that values in y axis are: 240, 280, 320, 360, 400, 440, 480.
I try
plot(x,y,yaxp=c(240,480,6))
dont work
I try
plot(x,y,yaxp=c(240,480,6),ylim=range(240,480))
dont work too.
How I make this control?
Thanks
Ronaldo
--
The turtle lives 'twixt plated decks
Which practically conceal its sex.
I think it clever of the turtle
In such a fix to be so fertile.
-- Ogden Nash...
2001 Jan 30
0
screen can't go back to (split) screen with log="y" plot (PR#831)
...bject line with some code:
> split.screen (c(2,1))
[1] 1 2
> screen(1)
> plot (1:2, 1:2, log="y", main="1")
> screen (2)
> plot (1:2, 1:2, main="2")
> screen (1)
Error in par(.split.screens[[n]]) : invalid value specified for graphics parameter "yaxp".
> close.screen(all=TRUE)
Let's add comments:
> split.screen (c(2,1))
[1] 1 2
OK, plot in the top half screen:
> screen(1)
> plot (1:2, 1:2, log="y", main="1")
> par("yaxp")
[1] 1 2 -5
OK, switch to bottom half:
> screen (2)
> plot...
2007 Jul 25
3
Constructing bar charts with standard error bars
I am new to R.
I want to graph group data using a "Traditional Bar Chart with Standard
Error Bar", like the kind shown here:
http://samiam.colorado.edu/~mcclella/ftep/twoGroups/twoGroupGraphs.html
Is there a simple way to do this?
So far, I have only figured out how to plot the bars using barplot.
testdata <- scan(, list(group=0,xbar=0,se=0))
400 0.36038 0.02154
200 0.35927
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", yaxt=...
2007 Oct 22
1
question on axis box with asp=1
...of the latter.
For example, if I write
plot(c(1,2),c(3,4),ylim=c(3,4),asp=1)
and then resize the plot, the system will adjust the y axis range
outside the 3-to-4 value. I'd rather it just put whitespace above
and below the plotting frame.
My next attempt is to try
plot(c(1,2),c(3,4),yaxp=c(3,4,1),asp=1)
or
plot(c(1,2),c(3,4),yaxp=c(3,4,1),asp=1,yaxs="i")
and these agreeably let me control the range of numbers on the axis,
but the frame still extends outside the desired region. (At this
point, I can explain why I care ... I'm drawing oceanographic data,
and...
2013 Jun 06
0
agrandar (estirar..) el eje de las ordenas
...2.0)
ang3m<-c(2.15, 2.35, 3.60, 1.90)
gm<-c(1,2,3,4)
amlm<-data.frame(gm, ang1m, ang2m, ang3m)
par(lwd=2, cex=1.5, font.lab=2)
plot(gm,ang1m,type="b",pch=15,lty=1, col="red",
xlab="grupo",ylab="Ordendas",
ylim=c(0.2,5)
, axes=F
# , yaxp=c(1,4,8)
)
axis(1, at=1:4, cex.axis=0.8, lab=c("A","B","C","D"), pos=1) # eje OX
axis(2, las=1, cex.axis=0.8 ,at=1:4,
# tck=0.5,lty=2,
# yaxp=c(1,5,2),
yaxp=c(1,5,5),
lab=c("1º","2º","3º", "4º"),...