search for: xaxt

Displaying 20 results from an estimated 723 matches for "xaxt".

2012 Nov 19
3
Plot Area Dimensions
...s, as is the top plot which has larger margins. How can I get the plot region the same size for all 6 plots, whislt still having a large enough margin for the x-axis label on the bottom plot? y<-rnorm(1:100) x<-rnorm(1:100) par(mfrow=c(6,1)) par(mar=c(0,5,2,5)) plot(y~x, xlab="", xaxt="n", ylab="y") par(mar=c(0,5,0,5)) plot(y~x, xlab="", xaxt="n", ylab="y") plot(y~x, xlab="", xaxt="n", ylab="y") plot(y~x, xlab="", xaxt="n", ylab="y") plot(y~x, xlab="", xaxt=&qu...
2011 Jan 27
1
How to xyplot without borders
...tice) graf.my.label <- xyplot(my.factor ~ quantil, data = my.label, aspect = 'fill',xlab = "",ylab='',xlim=c(0,103), scales=list(x=list(alternating=0 ),tick.number = 2,tck=0), panel = function(x, y) { panel.stripplot(x[1], y[1], pch=19, col='skyblue',cex=1.3,xaxt='n') panel.stripplot(x[2], y[2], pch=19, col='red',cex=1.3,xaxt='n') panel.stripplot(x[3], y[3], pch=19, col='chocolate',cex=1.3,xaxt='n') panel.stripplot(x[4], y[4], pch=19, col='blue',cex=1.3,xaxt='n') panel.stripplot(x[5], y[5], pch=19, c...
2005 Sep 01
4
Spacing and margins in plot
If I use the following command to plot points: plot(c(1,2,2,3,3,3), type="p", pch=20, ylab="Y Label", xlab="X Label", xaxt="n") there is a large amount of space between the label "X Label" and the actual x-axis. If I change the xaxt="n" to xaxt="s", the label "X Label" don't move at all. Is there a way to get the label "X Label" closer to the x-axis whe...
2000 Mar 03
2
problem with xaxt="n"
Dear All, Under WinNT4.0sp5 using the binaries downloaded from CRAN (version 1.0.0), if I want to do a plot without the tick-marks and numbers on the x-axis, the following: > x <- rnorm(10) > y <- rnorm(10) > plot(x, y, xaxt="n") does not give what I expect, i.e. it gives the same than "plot(x, y)". However, the following works: > par(xaxt="n") > plot(x, y) (i.e. nothing but the "x" label on the x-axis). Note that with version 0.99.0 the first bit of code works fine. I h...
2000 Mar 13
1
error in par option xaxt (PR#483)
Full_Name: Ian McLeod Version: 1 OS: WinNT Submission from: (NULL) (129.100.45.131) The plot optional argument xaxt does not work. Setting xaxt="n" has no effect, the axis is annotated. The R online documention provides an example. See help(axis) and try to execute the illustrative script. The annotated labels are overwritten. For convenience, I have extracted the following from the help(axis) page:...
2008 Apr 08
1
plot function / par() settings
...vious but I haven't been able to figure it out. I'll appreciate any suggestion. Here is the (highly inefficient) code for the first row: par(mfrow = c(2, 3)) par(omi = c(0.60, 0.60, 0.60, 0.10)) par(mai = c(0.00, 0.50, 0.50, 0.00)) plot(1:5, 1:5, xlab = "", ylab = "", xaxt = "n", col = "blue"); axis(3, at = seq(1:5), labels = rep("", 5)) par(mai = c(0.00, 0.00, 0.50, 0.00)) plot(1:5, 1:5, xlab = "", ylab = "", xaxt = "n", yaxt = "n", col = "red"); axis(3, at = seq(1:5), labels = seq(1:5)...
2012 Jan 08
2
need help with axis ticks
...cks and their values (y axis values).the part of the code that i am using (after reading in the data) to create the top row is: par(mfrow=c(6,6), oma=c(4,4,3,1), mar=par()$mar*0.25, family="serif",font=1) plot(flow1500,scf1500, type="p", xaxs="i", yaxs="i", xaxt = 'n',xlim = c(0,300), ylim=c(0,0.6)) plot(flow1500,ph1500, type="p", xaxs="i", yaxs="i", xaxt = 'n',xlim = c(0,300), ylim=c(0,10)) plot(flow1500,toc1500, type="p", xaxs="i", yaxs="i", xaxt = 'n', xlim = c(0,300), y...
2003 Aug 07
2
plotmath under windows (PR#3672)
...;) is used it displced closer to the axis. Pasting any character (except "") has this effect. The following code illustrates the problem. par(mfrow =c(3,2)) # plotmath not used plot(seq(-41, -40, 0.5), c(0, 1, 0), type = "n", xlab = "latitude", ylab = "", xaxt = "n", yaxt = "n") axis(1, at = seq(-41, -40, 0.5), labels = seq(41 , 40, -0.5)) # plotmath not used but characters pasted into labels plot(seq(-41, -40, 0.5), c(0, 1, 0), type = "n", xlab = "latitude", ylab = "", xaxt = "n", yaxt = &...
2000 Mar 24
1
does xaxt="n" work
To R-people I recently downloaded an rpm for suse-linux of R-1.0 for suse 6.3. There plot(tx,spax,type='l',ylim=range(ytx),ylab="",xlab="",xaxt="n",yaxt="n") does not seem to supress printing on the axis. The same statement seemed to work well in R-0.9 on a redhat 5.2 (compiled by myself). Has anyone had the same experience? regards Helgi -- Helgi Tomasson FAX: 354-552-6806...
2013 Oct 10
1
pairs plot
my data are matrix with 3 numeric columns. would like to have pairs plot with scatterplots in the upper with hist at the diag and with correlation at the lower. actually default pairs does almost what I want but looks semi awesome. Especially, i didn't find out how to remove the axes from the lower part where I do only want to display the numeric values correlations there and somehow axes
2009 Jan 28
2
help with plot layout
...in 1:length(bbCounts)) { bbCounts[k] <- length(which(bb[] == (k +min(bb) -1))) } zzLab <- seq(1,max(bbCounts),1) # DEFINE LAYOUT x11(width=22,height=14) nf <- layout(matrix(c(1,3,2,4),2,2,byrow=TRUE), c(3,1), c(2,2),FALSE) layout.show(nf) # PLOT DONOHO ALPHA par(mar=c(10,4,2,5),xaxt="n",cex.axis=1,pty="m") plot(xaa,t(aa),type="h") par (xaxt="s",xaxp=c(0,95.964,24),xaxs="i") axis(1,at=TickPos,labels=as.character(TickPos),col="red",col.axis="red",font.axis=1) # PLOT RAW SIGNAL par(mar=c(3,4,0,5),xaxt=&quo...
2006 Dec 19
1
xaxt="n" for image()
Hi, The argument xaxt="n" for removing the x axis from a image plot does not work for me. I'm really using a function called plot.grassmeta() in library GRASS that is a wrapper for image(), but it seems to me that the problem is not in plot.grassmeta() but in image(). If I'm right could you tell me if...
2014 Jun 13
2
no x label using axis.Date
I have tried multiple different methods to figure out how to get a date axis of my preference (start date of each month). Any assistance would be appreciated. The below section is not producing a date axis: plot(totaldays$totaldays,totaldays$y,type="n",ylim=c(0,Emax),xaxt="n") *xlabels<-(strptime(totaldays$totaldays,"%Y-%m-%d",tz="")) xlabels<-xlabels[xlabels$mday==1] axis.Date(1,at=xlabels,format="%b-%Y")* The above section is used in the following plot: par(mfrow=c(4,1)) par(mar=c(0.8,0,0,0)) par(oma=c(2,4.5,3,2)) p...
2003 Jun 26
2
Plots using POSIX
Is there a reason that the bottom axis changes color when POSIX data is used in plot function? For example: > timedata <- c("2/3/2003","3/4/2003","5/4/2003") > timedata2 <- strptime(timedata,format="%m/%d/%Y") > numdata <- c(2,3,4) > plot(as.POSIXct(timedata2),numdata,col="red",type="o") As compared to: >
2012 May 12
2
Plotmath bug or my misunderstanding?
...ex = 2) doubles symbols and regular text in subsequent plotmath expressions. However, it is unclear to me what specifying cex _within_ the annotation function using plotmath should do, and the following seems to want to have it both ways: ignore/obey )or maybe recycle?) plot(1,type="n", xaxt='n', yaxt='n', ann=FALSE) text(1,1,labels=expression(atop(sigma,"some text")),cex = 2) ## obeys the cex specification in symbols and text HOWEVER plot(1,type="n", xaxt='n', yaxt='n', ann=FALSE) text(1,1,labels=expression(atop(atop(sigma,"...
2008 Jul 24
1
plot.dendrogram xlim/ylim
...ntly stats:::plot.dendrogram does not accept xlim or ylim. So I would like to enable that. In place of the existing code chunk: xlim <- c(x1 - 1/2, x2 + 1/2) ylim <- c(0, yTop) if (horiz) { xl <- xlim xlim <- rev(ylim) ylim <- xl tmp <- xaxt xaxt <- yaxt yaxt <- tmp } plot(0, xlim = xlim, ylim = ylim, ...... I propose something like: function(..., xlim, ylim) xlim0 <- c(x1 - 1/2, x2 + 1/2) ylim0 <- c(0, yTop) if (horiz) { xl <- xlim0 xlim0 <- rev(ylim0) yl...
2012 Apr 17
0
Minor bug: plot.table and Axis.table (partially) ignore graphical parameters (patch included)
...800 +0200 +++ patched/trunk/src/library/graphics/R/axis.R 2012-04-17 10:22:01.636201900 +0200 @@ -54,10 +54,7 @@ Axis.table <- function(x, at, ..., side x0 <- if (is.num) xx else seq.int(x) if(missing(at)) at <- x0 if(missing(labels)) labels <- nx - xaxt <- if (length(as <- list(...))) { - if (!is.null(as$axes) && !as$axes) "n" else as$xaxt - }## else NULL - axis(side, at = at, labels = labels, xaxt = xaxt) + axis(side, at = at, labels = labels, ...) } else stop("only for...
2011 Jul 08
2
Vertical Labels in plot graph - normally working fine but not on this graph
...ot in the second. I tried to select the window but it didnt really help. Many Thanks Paolo ExtAvgCWV = rnorm(200) ExtAvgDemand = rnorm(200) ExtGasDays = seq(from = as.Date("2010-8-4", "%Y-%m-%d"), along.with = ExtAvgCWV, by = "days") plot(ExtAvgCWV, ann=FALSE, xaxt="n", yaxt="n" ) tickplaces <- seq( from = 1, by = 21, to = length(ExtGasDays)) Labels = ExtGasDays[tickplaces] axis(side =1 , at = tickplaces, labels = Labels) par(las = 3) windows() plot(ExtAvgDemand, ann=FALSE, xaxt="n", yaxt="n" ) #dev.set(which = 4)...
2010 Apr 20
1
multiple plots problem
...ame", row.names = c(NA, -8L)))) ################################################################### windows(5,15) par(ps=8,mgp=c(2.25,1,0),mfrow=c(3,1)) ################################################################### par(mar=c(0,4,4,2)) attach(seedl) plot(c(1:4),mw[1:4],type="o",xaxt="n",xlab="", ylab="Abundance (%)",ylim=c(0,100),xlim=c(0.7,4.3),pch=22,bg="white",cex=0.75,las=1) par(new=T) plot(c(1:4),mw[5:8],type="o",xaxt="n",xlab="",yaxt="n", ylab="",ylim=c(0,100),xlim=c(0.7,4...
2006 Oct 15
2
Compact presentation of multiple figures
Dear r-helpers, I have six panels: op(par(mfrow = c(2, 3), xaxt = 'n', yaxt = 'n', pty = 's'). Each of them has a variable main = 'i', and xlab = '', ylab = '' I would like to achieve two things: (1) a common x-axis label under panel 5, and one label to the left of panels 1 and 4 (2) minimal space between th...