search for: xaxi

Displaying 20 results from an estimated 100 matches for "xaxi".

Did you mean: xaxt
2005 Oct 03
2
grob questions
If I run the following example from: http://www.stat.auckland.ac.nz/~paul/grid/doc/grobs.pdf > grid.newpage() > pushViewport(viewport(w = 0.5, h = 0.5)) > myplot <- gTree(name = "myplot", children = gList(rectGrob(name = "box", + gp = gpar(col = "grey")), xaxisGrob(name = "xaxis"))) > grid.draw(myplot) > grid.edit("myplot::xaxis", at = 1:10/11) > grid.edit("myplot::xaxis::labels", label = round(1:10/11, 2)) > grid.edit("myplot::xaxis::labels", y = unit(-1, "lines")) then > str(myplot$chil...
2011 Aug 18
1
Where are the ticks on grid.xaxis?
Hi R list, I like the default ticks that are set up using grid.xaxis() or grid.yaxis() with no arguments. Finding good values for the 'at' argument is usually not a trivial task; the default behavior of these functions seems to work well. The problem with this strategy is that I cannot figure out how to "recover" the positions of these ticks whe...
2012 Mar 10
2
Window on a vector
Dear all, I have a large vector (lets call it myVector) and I want to plot its value with the logic below yaxis<-myVector[1] yaxis<-c(xaxis,mean(myvector[2:3]) yaxis<-c(xaxis,mean(myvector[4:8]) yaxis<c(xaxis,mean(myvector[9:16]) yaxis<c(xaxis,mean(myvector[17:32]) this has to stop when the new ..... yaxis<c(xaxis,mean(myvector[1024:2048]) will not find the correspondent number of elements, either wise it will stop with a...
2008 Jul 09
1
childNames for xaxis grob (grid package)
Dear list, Can someone explain why the childNames below gives character(0) instead of the (canonical) names of the children grobs of the xaxis gTree ? [1] "major" "ticks" "labels" Many thanks in advance, Tobias ### minimal example code ### library(grid) pushViewport(plotViewport(c(5,4,4,2))) pushViewport(dataViewport(1:5, 1:5)) grid.points(1:5, 1:5) grid.xaxis(name = "xa") grid.get("xa&q...
2009 Jul 15
3
abline(v= x) in plot with time formated xaxis not working
Hi, I try to create a vertical line in my plot, which has a xaxis comprising time formated data. This is what I tried: ---------------- y<-152833 x<-strptime(y, format="%H%M%S") abline(v=x, col="red") ---------------- for some reason, it doesn't work and no error msg is displayed... I hope someone can tell me what I do wrong,...
2008 May 07
1
Not to draw the xaxis ticks in ggplot2
>library(ggplot2) >(p<- qplot(mpg, wt, data=mtcars)) What I am doing is to set color of the ticks to hide them. >grid.gedit(gPath("xaxis", "ticks"), gp=gpar(col="white")) It should be a better way to achieve the purpose. Thanks.
2003 Apr 27
2
bug and proposed fix in print.trellis 1.7.0 (PR#2859)
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. ---1678264062-154654637-1051422990=:2626055 Content-Type: TEXT/PLAIN; charset=US-ASCII ---1678264062-154654637-1051422990=:2626055 Content-Type: TEXT/PLAIN; charset=US-ASCII;
2005 Sep 28
1
boxplot and xlim confusion?
...uot;, ">SSU, start", "TSU>, stop", ">TSU, start") elsustop <- read.table("28s.euk.accuracy.stop.dev") [skipped lots of read.table, which just reads files with one number on each line] par(mfcol=c(1,3)) par(mai = c(0,0,0.5,0.2), omi = c(1,1,1,1)) xaxis = c(-6000,1000) yaxis = c(0,7) #plot.new() #plot.window(xlim=xaxis, ylim=yaxis) boxplot(alsustop$V1 ,alsustart$V1 ,assustop$V1 ,alsustart$V1 ,atsustop$V1 ,atsustart$V1 ,names=names,col=c("lightblue","orange","lightblue","orange","lightblue","o...
2010 Apr 14
1
Problems getting symbols() to show table data
...t to actually work, with the result that I think I may be heading in completely the wrong direction. I can create a grid of circles with the right number of dimensions: Read_data=read.table("C:/files/circle_data.txt", head = T) number_rows = nrow(Read_data) number_cols = ncol(Read_data) xaxis = rep(seq(1,ncol(Read_data),1),nrow(Read_data)) yaxis = rep(seq(1,nrow(Read_data),1),ncol(Read_data)) zvalues = rep(0.1,(number_rows*number_cols)) #This is just a dummy vector symbols(xaxis, yaxis, circles = zvalues, inches = FALSE, xlab="", ylab="") axis(2, at=c(1:number_rows)...
2006 Mar 08
2
How to plot the xaxis label at 45 degree angle?
Hello there, I would like to plot a graph with the x axis's label displayed at a 45 angle to the x axis instead of horizontal to it as the label is very long. What should I do? Thank you for your help in advance Lisa Wang Princess Margaret Hospital Toronto, Ca
2009 Jul 24
1
adjusting grid on Xaxis ticks
Hello, I have been trying to plot correctly a graph for 2 month now, with no success.I want to put a grid, adjusted on the X axis tickers. Here is the way I build my X-Axis and my grid: grid(11, NULL, col="grey40") axis(2) # build the tickers on the beginning of each monthticks.at <- seq(ISOdatetime(lastYear, 01, 01, hour=0, min=0, sec=0, tz="GMT"),
2012 Apr 26
1
Hmisc::xYplot - text on xaxis
Hello, I'm making a simple plot using xYplot in the Hmisc library and having problems with labeling the values on the x-axis. Using the reproducible example below, how can I have the text (jan, feb,mar, etc.) in place of 1:12. Thanks, AB x <- c(seq(0,0.5,by=0.1),seq(0.5,0,by=-0.1)) ci <- rnorm(12,0,sd=0.1) xupper <- x + ci xlower <- x - ci mo.fac <- c("jan",
2009 Jul 21
2
animated grid graphics
...r it. A very simple example of what I need: ##============================================================================== library(grid) grid.newpage() pushViewport(plotViewport()) pushViewport(viewport(xscale = extendrange(c(0, 100)), yscale = extendrange(c(0, 100)))) grid.xaxis() grid.yaxis() rectNames <- paste("r", 1:100, sep = "") for (i in 1:100) { grid.rect(x = unit(sample(0:100, 1), "native"), y = unit(sample(0:100, 1), "native"), width = 0.1, height = 0.1, name = rectNames[i]) } for (i in 1:100)...
2001 Nov 22
4
changing the magnification of axis annotation
Hi all, how do I change the magnification of xaxis annotation? I need a smaller axis text size in some of my plots. I tried cex.axix=0.5 in plot(), but this doesn't work. Thanks, Sven -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send...
2007 Oct 09
0
Using Rexcel: How to work with a range of data?
Hi, I am trying to use an R function over a column of data I have in my excel spreadsheet. I do the following:- 1) assign an object (calling it xaxis) to the data by typing in =Rput("xaxis",a1:a10), where my data is shown in cells a1:a10 Now I wish to arrive at the mean of these numbers and am doing the following in another cell:- =Rapply("mean","xaxis") This does not work. Neither does =Rapply("mean&qu...
2009 Jun 20
1
modifying sound package function plot.Sample
Hi, I'm trying to modify this function.I want to remove the existing xaxis(the tick marks and the values below each tick) and make it dynamic so that i can choose whether i want the xaxis at the top or bottom but i cant seem to change that.can somebody help me? plot.Sample <- function(x,xlab=NULL,ylab=NULL,...){ sampletest <- is.Sample(x,argname="'x'...
2010 Feb 09
1
Bar plot
...280 7 2006 400 8 2007 270 I want to plot a barplot so for this If I use barplot(students) it says "Error in barplot.default(students) : 'height' must be a vector or a matrix" so I used the following command barplot(StudentsPassed) But this doesnt give me the names for Xaxis, how can I get the names for Xaxis, also how can I get labels for X and Y axis, and tittle, I tried title(main = "Year Vs Number of Publications") to get the title but its giving me an error Thanks in advance Sunita I want to -- View this message in context: http://n4.nabble.com/Bar...
2009 Jun 20
4
Customize axis labels in xyplot
Hello, I'm plotting an xyplot where a continuous var recorded every min is plotted on y, and time expressed as HH:MM:SS on x, as follows : xaxis=list(tick.number=12,rot=90) lst=list(x=xaxis) xyplot(upt$LOAD_1 ~ upt$TIME, data=upt, type=c('g','p', 'r'), scales=lst) On the x-axis, every time label is drawn and the label quickly become unreadable as they overlap on each other. I wished to limit the number of label wi...
2005 Dec 28
3
Axis/Ticks/Scale
Dear All, Apologies for this simple question and thanks in advance for any help given. Suppose I wanted to plot 1 million observations and produce the command plot(rnorm(1000000)) The labels of the xaxis are 0, e+00 2 e+05 etc. These are clearly not very attractive (The plots are for a PhD. thesis). I would like the axes to be 0,2,4,6,8,10 with a *10^5 on the right hand side. Is there a simple command for this? Best Wishes Roger
2006 Oct 11
4
Help on direction of axis in R needed
Hi! I'd like to plot things with axes going from the highest to the lowest value, so that e.g. high values on the xaxis are plotted to the left and low values to the right. Could anyone tell me how this is done? I couldn't find anything in the documentation. Thanks a lot! Silli