similar to: setting 'layout' locally within functions

Displaying 20 results from an estimated 20000 matches similar to: "setting 'layout' locally within functions"

2003 Oct 12
1
plot/ layout/ overlay problem
System info: Red Hat 9.0 R Version 1.7.0 ESS 5.1.21 Emacs 21.2.1 ------------------- Colleagues I have a small problem with positioning overlays using layout. ## Purpose: to plot temperature and salinity profiles ## as a multipanel figure, and ## overlay the the mixed ## layer depths. Here is the code skeleton: -------------------- nf <-
2008 Jun 26
1
Layout() coordinates and drawing lines / segments
Hello, I am trying to wrap my head around the coordinates systems associated with the layout() function ...with the end goal of simply drawing a decorative line in the upper margin of my figure, which is composed of three plots. My output is defined as this: ---------------------------------------------------------------------------- postscript("out.ps", horizontal=FALSE,
2007 Nov 25
1
Set the grid.layout programmatically?
Hello all: Does anyone know if the grid layout function can be set dynamically? For example if I have a column that will be changing as new data is added monthly I would like grid to detect the new data and create another row or column for the new plot on the same window instead of adding the new layout manually. The code below shows a grid.layout of hardcoded two rows and two columns.Thanks
2005 Dec 01
1
maImage() and layout()
Dear all, Trying to produce 4 maImage plots (marray package) on the same device (2 on the top and 2 on the bottom) with the layout() function or the split.screen() function, we are facing the following problem: it seems that maImage() does nt care about any of these 2 functions, and plots only one image at a time. Maybe this is inherent to this maImage() function, but we did not find anything
2006 Oct 16
1
plots: layout + subtitles
Hello, I want to create a figure that consists of a collection of 16 graphs on 4 rows. I am using nf <- layout(matrix(seq(1,16), 4,4, byrow=TRUE), respect=TRUE) boxplot(... to create the layout of my 16 graphs. It works really well. However, I'd like to add sub-titles that would apply to each row of 4 graphs. More specifically, I'd like to have something like: subtitle 1
2011 May 19
1
Border-Layout by multiple Plots
Ein eingebundener Text mit undefiniertem Zeichensatz wurde abgetrennt. Name: nicht verf?gbar URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110519/f0ce5a0d/attachment.pl>
2004 Nov 14
1
Combining expressions and objects within labels
Hello all, I am an R novice and I have a simple question and hope somebody can help me out. I need to place several labels in a plot, this labels are some kind of text and also some objects (which come from some more complicated R calculations). In one of this labels I'd like to place a superscript, however I cannot find a way to place both the expression and the object in the same
2007 Oct 11
1
How can I obtain a boxed sweave output within Latex?
This question is about including code and R results in Latex trough Sweave. It works fine and is of great help. Now may question is how to get the code and the output computed by R within a frame in Latex. Does any one have an idea on that. I tried \fbox, etc. but it seems to have problems with the code chunk generation of Sweave and I ger errors. I would appreciate any suggestion. I'll
2011 Jun 29
2
Testing if a variable is specified within a function & adding TRUE/FALSE options to functions
I have 2 related questions about functions. 1. I am writing a function to plot data from a time series with the form myplot<-function(data, d1,d2) { } Where d1 and d2 are two dates in a time series. The idea being that if no values for d1 and d2 are entered then the function defaults to plotting the whole time series, else it plots the data for the interval specified by d1 and d2. I am
2009 Sep 24
1
Creating grid graphics with grid.layout
Hi, I recently created a function which uses grid with a viewport constructed with grid.layout() to position four plots on a plot device. My question is what's the best way to programatically traverse each element of the viewport? The grid is 5x5 and the four plots occupy positions (2,2), (4,2), (2,4), and (4,4). Here's the viewport code: pushViewport( viewport(
2008 Mar 04
1
grid.layout?
platform x86_64-unknown-linux-gnu arch x86_64 os linux-gnu system x86_64, linux-gnu status major 2 minor 6.2 year 2008 month 02 day
2008 Jul 11
1
TeachingDemos question: my.symbols() alignment problems in complicated layout
Hello, After usefull suggestions by Paul Murrell, i have been trying to use my.symbols to plot arrows of varying angles on my plot in order to create a time series of wind direction... however,i have been unable to figure out how the allignment of symbols works... below i have included a simplified code that illustrates my problem: (i am creating a .ps file ... so i've included this in my
2010 Jul 26
2
Trouble using grid.layout in Sweave
Hi! I am troubled by Sweave which I want to use in order to plot graphics which I build up successively by the use of grid.layout. Here is the code: <<fig=TRUE,label=evolDist,height=6in,width=3in,pdf=FALSE>>= ## combined plot via grid viewports grid.newpage() pushViewport(viewport(layout=grid.layout(2,1))) vlay <- function(x,y) viewport(layout.pos.row=x, layout.pos.col=y)
2016 Nov 14
2
getGraphicsEvent() alternative for cairo graphics device?
Thanks Frederick. Mark, if you have any examples to share, they would also be gratefully received. Paul On 14/11/16 14:53, frederik at ofb.net wrote: > Hi Paul, > > OK I tried not to make the examples too fancy. > > Please let me know what you think. They should probably be amended to > support the Windows platform, but I think that task would be much > easier for someone
2008 Aug 06
1
grid layout scaling viewport width based solely on height
Hello all, I'm trying to write a function that produces a main plotting region with several square plots along the right side. Ideally the size of right side plots will scale only with the height of the entire plot, yet never overlap with another secondary plot. The following two snippets get close, however, as I resize the plot horizontally the right side plots (green squares) get smaller
2016 Nov 13
4
getGraphicsEvent() alternative for cairo graphics device?
Hi The current status is that I am keen for people to contribute some testing code (see https://bugs.r-project.org/bugzilla/show_bug.cgi?id=16951) There were also some getGraphicsEvent() changes/fixes suggested by Richard Bodewits (cc'ed), for which I am also seeking test code. Paul On 13/11/16 09:00, frederik at ofb.net wrote: > Hi Paul, > > Just checking in to see what the
2006 Sep 28
3
complex plots using layout()
Dear r-help, I am trying to plot several scatter plots with marginal histograms on one page. Ideally, a page is equally divided into 4 figure regions. Within each figure region, a scatter plot with marginal histograms will be plotted. I followed Dr. Paul Murrell's code released online to successfully plot the scatter plot with marginal histograms. The code applies "layout()" to
2016 Dec 08
2
getGraphicsEvent() alternative for cairo graphics device?
Hi Just taking a bit more of a look at this today (currently fixated on making sure I can build some good regression tests). The best thing you can do is to keep reminding me like this :) Paul On 09/12/16 11:19, frederik at ofb.net wrote: > Hi Paul, > > Thanks for your efforts. Do you have an idea when my patch(es) might > be committed? Is there anything I can do to help move this
2003 Apr 16
2
layout.show()
Dear r-help, Please, be so kind, tell me what does mean the parameter of layout.show()? I use R 1.6.2... Windows NT 4.0 Unfortunately I cannot understand phrases from the help "n: number of figures to plot." what figures? "`layout.show(n)' plots (part of) the current layout, namely the outlines of the next `n' figures." what figures?
2016 Nov 14
2
getGraphicsEvent() alternative for cairo graphics device?
Great. Thanks! Paul On 14/11/16 13:41, frederik at ofb.net wrote: > Hi Paul, > > Thank you, for some reason I didn't seem to get an email notification > for your bugzilla comment! > > I will try to send you something shortly. > > Frederick > > On Mon, Nov 14, 2016 at 08:55:20AM +1300, Paul Murrell wrote: >> Hi >> >> The current status is that