search for: plt

Displaying 20 results from an estimated 58 matches for "plt".

Did you mean: plot
2017 Jul 26
1
axis() after image.plot() does not work except if points() is inserted between
Thanks... I agree that the problem was explained in the documentation but I can't find a way to have axis() working even manipulating par("plt") or with graphics.reset = TRUE: - adding graphics.reset=TRUE does not allow axis() to be shown; - I see that par()$plt is involved but it is the not sufficient to explain why axis() works because if it is changed by hand, axes are not shown. Thanks for the trick about range(). I didn't...
2005 Oct 21
2
locator
I''m trying to use the locator function on a drawing area with multiple graphs par(mfrow=c(1,2)) Is it possible to identify which graph has been clicked? thanks tom
2012 Aug 15
0
question concerning par("plt") and par("mar")
Hello, I have a function that changes par("plt") to plot a colorkey, and upon returning resets the original value. Unfortunately this changes the size of the plots when I change the layout. A simplified example: par(mfrow = c(1, 1)) plt <- par("plt") # .... # change par(plt) and create colorkey pa...
2017 Jul 28
1
[FORGED] Re: axis() after image.plot() does not work except if points() is inserted between
...;) I have committed a fix to the development version of R (r72982). Paul On 26/07/17 21:29, Marc Girondot via R-help wrote: > Thanks... I agree that the problem was explained in the documentation > but I can't find a way to have axis() working even manipulating > par("plt") or with graphics.reset = TRUE: > - adding graphics.reset=TRUE does not allow axis() to be shown; > - I see that par()$plt is involved but it is the not sufficient to > explain why axis() works because if it is changed by hand, axes are not > shown. > > Thanks for the tri...
2017 Jul 25
1
axis() after image.plot() does not work except if points() is inserted between
...#39;t, but a cursory reading already shows me that the author of the function did this partly on purpose: > Side Effects: > > After exiting, the plotting region may be changed to make it > possible to add more features to the plot. To be explicit, > ?par()\$plt? may be changed to reflect a smaller plotting region > that has accommodated room for the legend subplot. Unfortunately, there it does _not_ mention the following : >From looking at its code, and then re-reading parts of the help page, I see that there is a 'graphics.reset' a...
2011 Jun 30
3
Italicized greek symbols in PDF plots
...lt;- data.frame(x = runif(270, 0, 125), z = rep(LETTERS[1:3], each = 3), yy = 1:9, stringsAsFactors = TRUE) #unicode italicized delta dat$gltr = factor(c("italic(\u03b4)^14*N","italic(\u03b4)^15*N","italic(\u03b4)^13*C")) #So this is what I want my plot to look like: plt <- ggplot(data = dat, aes(x = yy, y = x)) + geom_point(aes(x= yy, y=x, shape=z, group=z), alpha=0.4,position = position_dodge(width = 0.8)) + facet_grid(gltr~.,labeller= label_parseall, scales="free_y") plt #So then I exported my plot as a PDF like so: pdf("Times_regular....
2007 Oct 20
0
pairs, par("plt")
...te system after using pairs. I''m not interested in the content of the actual pairs plot, although the number of pairs seems to matter a bit. I''m purely interested in knowing where my points will be plotted on the device. However, after using pairs, the par information (omd, fig, plt, and usr) don''t reflect what points does. For example: pairs(iris[1:5]) par(xpd = NA) points(0 - 0.01 * 1:100, 0 - 0.01 * 1:100) points(0 - 0.01 * 1:100, 1 + 0.01 * 1:100) points(1 + 0.01 * 1:100, 0 - 0.01 * 1:100) points(1 + 0.01 * 1:100, 1 + 0.01 * 1:100) par(c("omd", "f...
2006 May 25
3
missed ylim from plot.default
? 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/20060525/ef972e9f/attachment.pl
2000 Dec 15
1
Bug in bitmap producing pdf???
...ver. I produce both ps and pdf files from LaTeX (MiKTeX), so sometimes I need to get .eps graphs from R, sometmes .pdf. To rationalize this I wrote the following function to let me easily choos what I want wihtou changing the code in my R-programs too much (here embedded in a small test program): plt <- function( file, type = "pdf", dir = options()$grdir, height = 7, width = 7, paper = "special", ... ) { if ( type=="pdf" ) { print ( paste( dir, file, ".pdf", sep="" ) ) #just cheking....
1999 Apr 16
1
stamp function in R
Dear R experts, currently I'm converting a bit of trivial Splus code to R. In Splus I came across the stamp function. Does R have something similar? Thank you very much for your time. Ananke P.S.: Keep up the good work on R. It's great! HotBot - Search smarter. http://www.hotbot.com -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing
2007 Nov 14
4
label plotting on nmds diagram
Hi, I''m using nmds command (library vegan) to analyze some fishing data. I''d like to plot not only points, but also the names of species and stations in a specified position. I used the command text(nmds$points[,1], nmds $points[,2],labels=row.names(nmds $points),pos=3,cex=0.5) But the labels are sometimes overlapped. Is there any way to use identify, or a similar command,
2007 Jun 19
5
plot only x- and y-axis with origin, no box()
hi all, I''m trying for quite some time to have an x- and y-axis, but no entire box. >plot(..,axes=F) >axis(1) >axis(2) Gives this, but their axes do not go to the origin. Quite a number of people find this gap between the two axes disturbing. Has anyone an idea how to let these axes go to the origin? thank you in advance [[alternative HTML version deleted]]
1998 Jan 08
0
R-beta: Using par(tck=,xaxs=)
...2: GP->tck = -0.02; /* Blue Book p.527 standard value */ src/main/plot.c, lines 462-463, replace by: /* this sets the tick length to the same fraction for x and y, as opposed to the Blue Book definition of the same length */ xtk = -GP->tck*(GP->plt[1] - GP->plt[0]); ytk = -GP->tck*(GP->plt[3] - GP->plt[2]); ------------------------------------------------------- Get par(xaxs="s",yaxs="s") to work: src/graphics/graphics.c, line 826, [added after case 's']: /* this is too easy! *...
2008 Jun 09
6
FW: Memory Leak Problem in My Application running on Solaris 10.
Hi, This is regarding Dtrace usability for memory leak detection. We have real-time application written C++ which runs on Solaris 10 having a problem that''s the my application grows in size from 130 Mb to 450Mb in around 15 days. So there is two possibilities with the application growth of memory due to Size growth of Dictionary Objects (Like Maps) and Memory Leak.
2009 Dec 11
9
shared axes in multipanel plot
Hello I''ve created a function to make a plot with multiple pannels from columns of data that are created in a previous function. In the example below the number of columns is 8, giving 4 pannels, but in general it takes data with any number of columns and figures out a nice layout. The panels all have the same axes, and so I wonder what functions are avialable to create axes only on
2008 Jun 13
1
adding custom axis to image.plot() and strange clipping behavior
...image.plot() ## and assign to new function called ''imp'' ## here I just use the second condition of ''if'' statement ## and set ''xpd = TRUE'' imp <- `body<-`(image.plot,value=`[[<-`(body(image.plot),28, quote({par(big.par) par(plt = big.par$plt, xpd = TRUE) par(mfg = mfg.save, new = FALSE) invisible()}))) imp(m,axes=FALSE) box() axis(1,axTicks(1),lab=letters[1:length(axTicks(1))]) ## clip to plotting region for additional ## graphical elements to be added: par(xpd=FALSE) abline(v=0.5) ###=== end code I w...
2006 Nov 09
2
POSIXlt converted to POSIXct in as.data.frame()
In trying to use as.Date(), I''ve come across the conversion of POSIXlt to POSIXct when a POSIXlt variable is included in a data frame: my_POSIX <- strptime(c("11-09-2006", "11-10-2006", "11-11-2006", "11-12-2006", "11-13-2006"), "%m-%d-%Y") str(my_POSIX) my_Date <- as.Date(my_POSIX) str(my_Date) data <-
2012 Mar 16
2
plotting border over map
I am using following codes to plot map library(sp) library(rgdal) library(maps) library(gplots) library(clim.pact) library(fields) source("/R/PlotGridded2DMap.R") source("/R/image.plot.fix.R") source("/R/image.plot.plt.fix.r") seasonal_plot<-function(input,lonll=-180,latll=-90,lonres=5.,latres=3.75,write_file=TRUE,The_title=NULL){ if(is.null(The_title)){ for (ki in 1:length(input)){ The_title[[ki]]<-sprintf("XCH4 CH4 (ppb)",ki) } } if(!is.list(input)){input=list(input)}...
2001 Mar 20
0
Problem postscript(print.it)
Hi all, I have a problem with plotting: (R-1.2.2 on SunOS fluke 5.5.1 Generic_103640-27 sun4u sparc SUNW,Ultra-Enterprise solaris 2.) I define a function to switch between plotting on graphics device and generating a postscript file (which can also be automatically be printed) plt <- function(view,f,file="") { if (view>0) f else { postscript(file=file,print.it=(view==0)) on.exit(dev.off()) f } } If I try with view <- 0 or -1 plt(view, plot(rnorm(100),rnorm(100),"test") I am getting the error plot.new has not been called ye...
2011 Apr 28
2
gridBase Base Plot Positioning
...lotViewport(c(5, 5, 4, 2))) pushViewport(viewport(layout = grid.layout(4, 6))) for(i in 1:5) { for(i2 in 1:4) { pushViewport(viewport(layout.pos.row = i2, layout.pos.col = i)) grid.rect() popViewport() } } pushViewport(viewport(layout.pos.col = 6)) plot.new() par(plt = gridPLT(), new = TRUE) randData <- lapply(1:4, function(x) sample(10, 10, TRUE)) boxplot(randData, horizontal = TRUE) dev.off() I''m using gridBase_0.4-3. Thanks, Dario. -------------------------------------- Dario Strbenac Research Assistant Cancer Epigenetics Garvan Institu...