Displaying 20 results from an estimated 2000 matches similar to: "sizing and saving graphics in R"
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
2012 Sep 27
1
Problem with grid.rect
I have a stupid problem that is currently driving me crazy...
Let us suppose that I want to draw a big red square in the middle of my
current device (say X11)
I tried the following code :
pushViewport(viewport(xscale=c(0,1), yscale=c(0,1)), just=c("center", "center"))
vp1 <- viewport(x=unit(0.5, "native"), y=unit(0.5, "native"),
width=unit(0.4,
2009 Mar 21
1
Forestplot () box size question
Hi All,
I have been able to modify the x-axis to start at zero by adding xlow
and xhigh parameters; that was pretty simple. I have been unable to
find the location of the code that would turn off the information
weighting of the box size (I have smaller randomized trials getting
less weight than a much larger non-randomized trial). The function
is forestplot() from rmeta.
Thanks for any
2004 Nov 19
2
ERROR: installing package indices failed
Dear R-helpers,
I am developing a package named LDehatmap.
It depends on the "genetics" package
and includes two data files and a demo file.
When I'm trying to install it, I get the following messages:
* Installing *source* package 'LDheatmap' ...
** R
** data
** demo
** help
>>> Building/Updating help pages for package 'LDheatmap'
Formats: text html
2007 Jun 28
1
Changing graphics height when using grid and lattice
Hi,
I have recently been playing with the grid package in an attempt to create
some pages containing multiple lattice plots on the same page. However, when
I specify a grid layout with different widths, such as:
pushViewport(viewport(layout = grid.layout(1, 2, unit(c(2, 1), "null"))))
the individual graphs do not end up as the same height - which is a feature
I would prefer to have.
2007 Jun 25
2
Re : Half of a heatmap
> I am trying to produce a heatmap of pairwise correlations, but since the matrix is
> symmetric, I only need either the upper or the lower triangle. I have scoured the
> web and R documentation, but I have not been able to find a way to produce such a
> figure. Is there a simple way to produce a heat map with only the part above or
> below the diagonal?
You might want to check
2006 Mar 12
0
New version of the LDheatmap package
Version 0.2 of the package LDheatmap is now on CRAN. The main function
LDheatmap produces a graphical display, as a heat map, of measures of
pairwise linkage disequilibria between SNPs. Users may optionally
include the physical locations or genetic map distances of each SNP on
the plot.
The revisions to the package are aimed at improving the user's ability
to modify and annotate the
2006 Aug 28
1
Download problems
Hallo,
I am a new user of 'R'. I have been trying to download it onto my Mac (OSX
2.8). For some reason it seems to download ok and look ok but then it
doesn't actually open. Can somebody help me this?
Felicity
2006 May 17
4
Variable Inheritance - Set in Child, Read by Parent
Here's what I'm doing:
1. I set __FOO=0 in the current context.
2. I use Dial() and the M(testvar) macro call.
3. The macro-testvar can see ${FOO} just fine.
4. the macro-testvar modifies FOO. I tried:
Set(__FOO=1)
Set(_FOO=1)
Set(FOO=1)
5. When the Dial()ed call hangs up, and the original context continues,
FOO is still 0.
2006 Oct 26
3
Read.csv
Are there ways to load a csv file without row.names by read.csv? Thanks.
[[alternative HTML version deleted]]
2006 Sep 07
3
graphics - joining repeated measures with a line
I would like to join repeated measures for patients across two visits using
a line. The program below uses symbols to represent each patient. Basically,
I would like to join each pair of symbols.
library(lattice)
patient <- c(1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9)
var <-
c(826,119,168,90,572,323,122,10,42,900,250,180,120,650,400,130,12,33)
visit <- c(1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2)
2009 Mar 10
2
1.4.23 + Realtime Queues/Agents NOT via SIP
I'm working on a project that involves Queues with Agents that are at home
with a PSTN phone number, NOT connected via SIP phones.
In the queues.conf it clearly states that only the SIP driver supports "In
Use" detection of making members of a Queue available or unavailable.
I've not yet figured out the best way to handle this. Currently I've got a
macro that is executed
2006 Sep 11
1
graphics: y limit on xyplot
I would like to set the y axis limit of an xyplot using the object 'ylimit',
but receive this error:
[1] 990
Error in extend.limits(limitlist[[i]], axs = axs) :
improper length of lim
I get the same error if I use ylim.
library(lattice)
trellis.device(col = FALSE, theme = lattice.getOption("col.whitebg"))
name <- "Variable name"
symbols <-
2006 Nov 17
2
s.e. on interaction plots
Is it possible to add standard error bars to the means on interaction plots?
Thanks
Murray
--
Murray Pung
Statistician, Datapharm Australia Pty Ltd
0404 273 283
[[alternative HTML version deleted]]
2007 Jul 23
1
maths characters in labels & ylab padding
I have checked out the help files, but cannot find details on how to use
maths characters in ylab. Instead of m^2, I would like the 2 in superscript,
if possible. I would also like to place more padding on the label so that
the label is not obscured by the horizontal numbers.
y <- 1:10
x <- rnorm(10,50000,2000)
plot(x ~ y,
ylab = 'Y Label (m^2)',
las = 1,
type =
2007 Oct 10
1
global object in user defined function
I need an object created in a user defined function to be accessible to
another user defined function. I am fairly certain the object is correctly
created as it prints when I use the return() function, however the 2nd
function seems unable to use it.
I am guessing objects created in functions are not globally accessible, is
this correct?
What is an appropriate way to pass the object to the
2007 May 30
2
control axis
I have an outlier that I would still like to display, but would prefer to
shorten the axis. For example, display 0% - 40%, and 90% - 100%. Is this
possible? I am using an xyplot.
Thanks
Murray
--
Murray Pung
Statistician, Datapharm Australia Pty Ltd
0404 273 283
[[alternative HTML version deleted]]
2009 Jul 27
2
Superstring in text()
I'd like to paste a superstring with a number in an object.
Thanks for any help.
Murray
mycor <- cor(1:10,1:10)
plot(1:10,1:10)
text(8,2,paste(expression(R^2)," = ",mycor))
[[alternative HTML version deleted]]
2005 Nov 23
8
getting started, reading listing and saving data
Dear List
I am new to R and to the list and will try best as I can be clear and
concise. My apologies if anything I write contravenes the posting code
on this list. I would also like to say I have run through most of the
material on the R website before writing this email however, I am
stuck.
Here is what I want to do and what I have done
1. Read a comma seperated text file into R
I have used
2009 Jul 21
3
DO NOT REPLY [Bug 6569] New: chmod-temp-dir fails on QNX
https://bugzilla.samba.org/show_bug.cgi?id=6569
Summary: chmod-temp-dir fails on QNX
Product: rsync
Version: 3.1.0
Platform: Other
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P3
Component: core
AssignedTo: wayned at samba.org
ReportedBy: mkraai at beckman.com