Displaying 20 results from an estimated 8000 matches similar to: "layout() and lcm() problem"
2003 Jan 28
0
Newbie graphics question
Greetings list-
I am a newcomer to R and have tried to resolve my question with the
manuals and the help archives to no avail, though some of this is simply
a lack of familiarity with R and S (BTW I am using R 1.6.1, on Windows98
second edition 4.10.2222A).
I am trying to create publication quality plots: six figures to a page,
5 cm square plot regions, with 3 cm of horizontal white space and 2
2011 Feb 16
0
y-axis slightly cut-off after printing plots to tiff
Hi Folks,
I'm hoping someone could help me a bit. I have plotted the following:
###########################################
tiff("plot7.tiff",units="cm",width=15,height=36,res=700)
layout(matrix(c(1,2,3,4,5,6),3,1),widths=lcm(c(15)),heights=lcm(c(12,12,12)),respect=TRUE)
plot.t1<-plot(data.dist,flot1.bray.hell,xlab="",ylab="Bray-Curtis
dissimilarity
2012 Jul 10
2
how can I show the xlab and ylab information while using layout
hi R-users:
I want to draw three plot into one figure by layout and the script has
been shown below.
But I find R does not show the xlab and ylab information completely as
shown the figure attached.
How can I midify the script.? thank you .
xxlab<-paste(cpmd," (",ro,"%)",sep=" ")
yylab<-paste(rfmd," (",co,"%)",sep=" ")
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
2012 Sep 23
1
grid: How to merge cells in grid.layout?
Dear grid expeRts,
I would like to create a layout with grid that looks like the following, but with cells (1,1), (1,4), (4,1), and (4,4) removed and cells (2,1) and (3,1) (and (4,2) and (4,3)) combined to one cell (so that contents can easily be centered.
How can this be achieved?
require(grid)
gl <- grid.layout(4, 4, widths=unit(c(1, 3, 3, 1), "cm"),
2011 Aug 21
0
Split split plot analysis for unbalanced data using lmer
Hello,
I'm attempting to analyze a split-split plot model, currently using
lmer. My design is similar to that used in Casella's Experimental
Designs Ozone Example (example 5.7, p 197), but I have been unable to
find any coding help for split-split plot models through searches of
several textbooks and the R list serve. I have three treatments of
interest (A,B,C), each with 2 treatment
2011 Nov 15
1
grid.arrange, grid.layout - legend, global y axis title
Hello,
I created several plot with ggplot2 dev mode.
Now I want to combine the plots in a grid
e.g. 2x2 with a fixed size of the output.
What I am doing at the moment is:
grid.newpage()
pushViewport(viewport(layout = grid.layout(nrow=2, ncol=2,
widths = unit(c(7.5,6.5), "cm"),
heights = unit(rep(5, 2), "cm"))))
print(plot1, vp = viewport(layout.pos.row = 1,
2011 Oct 05
2
subplot strange behavoir
Hello,
Below is some example code that should reproduce an error I'm encountering
while trying to create a tiff plot with two subplots. If I run just the
following bit of code through the R GUI the result is what I'd like to have
appear in the saved tiff image:
x<-seq(0:20)
y<-c(1,1,2,2,3,4,5,4,3,6,7,1,1,2,2,3,4,5,4,3,6)
plot(x,y,type="l",las=1,ylim=c(0,12))
2008 Apr 21
1
Use of recordPlot
I am trying to save plots that I create using calls to windows() folowed
by multiple calls to plot to place several plots on a page. I want to
store the plots as variables to be able to recall them later.
The documentation states:
"Recorded plot histories are of class "SavedPlots". They have a print
method, and a subset method.
As the individual plots are of class
2010 Dec 17
2
Nested layout()
Hello,
Is it possible to call a graphing function that uses layout() multiple times and layout those outputs ? Here's a minimal example :
myplot <- function()
{
layout(matrix(1:2, nrow=1), widths = c(1, 1))
plot(1:10)
plot(10:1)
}
layout(matrix(1:2), heights = c(1, 2))
myplot()
myplot()
--------------------------------------
Dario Strbenac
Research Assistant
Cancer Epigenetics
Garvan
2012 Jul 10
0
R-help Digest, Vol 113, Issue 13
http://www.ncbi.nlm.nih.gov/pubmed/21418051 for the full reference.
I don't have an electronic copy, but I do have that issue of Biometrics
in my office. I'll have a copy sent over.
Terry
On 07/10/2012 04:08 PM, r-help-request at r-project.org wrote:
> Send R-help mailing list submissions to
> r-help at r-project.org
>
> To subscribe or unsubscribe via the World Wide
2010 Jan 03
0
[R-sig-eco] How to create axes in arbitrary positions?
Dear Zongshan Li,
I'm forwarding this back to r-help ... it's generally best to keep the
conversation going in public, so that (a) other people can chime in with
ideas and suggestions, (b) your question doesn't get lost if the
original respondent doesn't have time to deal with it, (c) the answers
are archived for future reference.
Your example (I've attached it, hope it
2011 Nov 03
0
Back-transforming in lme
Hello I am analysing aboveground biomass data from revegetation testplots which I constructed in a split-plot design using the function lme. For the experiment, the three factors are amelioration (2 levels), fertilizer (2 levels) and treatment (7 levels). Each testplot (block) has a singlereplicate of each treatment (total of 8 testplots). The blocks were constructed of topsoil. Each block was
2013 Feb 16
1
subplot (Hmisc) and radial.plot (plotrix) problem
Folks,
I am having problems with a plot I want to create to give an impression
of changes in an ordinal scale measure (1-5) at three time points (0,
14 and 21 days). I can produce a radial plot of bare vectors but getting
this to appear on the base plot is not possible as it always seems to
end up below the plot area and even outside the plot window.
It seems I have not understood
2008 Mar 20
4
little subplot in corner
I want to draw a little subplot ("overview") into my detailed plot. It
should be placed in say the top right corner and have the size of some
legend (like legend(x="topright", inset=0.03, ...)
#main plot
plot(rnorm(100))
#give little density in corner
plot(seq(-2,2,length=300),dnorm(seq(-2,2,length=300)),type="l")
I don't want something like par(mfrow=c(1,2)) as
2012 Sep 23
1
Background color in a grid plot seems to interfere with plot()
Hi,
Why does the upper left panel (in the plot below) not have a gray background?
Cheers,
Marius
require(grid)
require(gridBase)
pdf(file="Rplot.pdf", width=8, height=8, onefile=FALSE)
## set up the grid layout
gl <- grid.layout(5, 5, widths=unit(c(1.8, 8, 0.8, 8, 0.8), "cm"),
heights=unit(c(0.8, 8, 0.8, 8, 1.5), "cm"))
if(FALSE) grid.show.layout(gl)
2012 Mar 10
1
Help on subgraphs in xyplot of lattice library
Dear All,
I would like to ask a question on how to do overlay plots in each subgraph of xyplot.
1. I did simulations for m=1000, 2500, 5000, 10000, as the sample sizes.
2. for each sample size value m, 4 graphs are generated; each graph contains overlayed comparisons between 4 methods,
3. now I want put them into a 4-by-4 plot by xyplot, i.e., 4 sample size values, each of which has 4 plots.
2011 Nov 14
0
size of pdf/eps output
Hello,
I am using a grid.layout for combining multiple ggplot-plots.
So far I am doing it this way to get a pdf/eps:
pdf("/path/to/my/file.pdf") #or postscript("/path/to/my/file.eps")
grid.newpage()
pushViewport(viewport(layout = grid.layout(nrow=2, ncol=2,
widths = unit(c(7.5,7), "cm"),
heights = unit(rep(5, 2), "cm"))))
print(plot1, vp =
2013 Jan 06
1
nested, unbalanced anova
Hello,
For an experiment, I selected plots of land within a forest either with
honeysuckle or without honeysuckle. Thus, my main factor is fixed, with 2
levels: "honeysuckle present"(n=11) and "honeysuckle absent"(n=8).
Within each plot of land, I have a "trenched" subplot and an "untrenched"
subplot.
Within each subplot of every plot, I measured soil
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,