Displaying 20 results from an estimated 6000 matches similar to: "what is absolute size of mar"
2009 Jan 14
4
How to get legend outside of plot?
I am creating a CDF plot function more user-friendly than any default r
function. Depending upon the bimodality of the data (it is often bimodal),
or any other strange data trends, the points can end up gathering in just
about any corner of the plot. So, when I add a legend, whether I choose to
add it in the bottom right, top left, or wherever, it will sometimes end up
putting the legend right
2009 Oct 02
3
plot scale
Hi,
Is there a way to set the scale of a plot (i.e. number of axis units
per centimeter) when you output it to postscript? If not, how am I
supposed to plot graphs with different axis limits to the same scale?
They just get resized to fit the paper so that graphs which show a
smaller number of axis units end up with a larger scale.
Cheers,
Ben
--
Dr. Ben Kenward
Department of Psychology,
2013 Jan 20
2
"user units" in plotrix
hi all - i'm having some difficulty figuring out how to convert
between "user units" (which i can't find a definition for in the
plotrix package) and either (a) device units (e.g. inches with PDFs)
or (b) user coordinates along any particular axis.
as an example, suppose i set up a PDF device with inches, the device
has both outer and inner magins, and the plot region has
2013 Jan 22
1
how to give a lengend in symbols functions
hi Rusers
I am trying to use symbos in gtools package
symbols(data1,data3,circle=data1/data3,inches=0.1,bg="lightgreen")
Now I want to give a lengend to tell the reader the meaning or magnitude of
these circle.
How can I add these information in symbols plot just like legend in plot ?
thank you .
--
TANG Jie
Email: totangjie@gmail.com
Tel: 0086-2154896104
Shanghai Typhoon
2012 Oct 18
1
legend of maps generated by function symbols
I generated maps with the function symbols (graphics). These are basic
maps generated with :
symbols(x,y,circles=myvariable)
where x et y are spatial coordinates corresponding to replicates of
"myvariable".
I would associate legend to this kind of maps, is it possible?
Regards,
Marion.
--
Marion Jacquot
Laboratoire de Chrono-environnement
UMR UFC/CNRS 6249 USC INRA
Universit? de
2008 Jun 30
2
Plotting question: Problem with strwidth in 2.7.1
R users,
I have a problem with function strwidth in 2.7.1. I'm trying to set
the plot margins in a way that horizontal
column labels will fit to the graph. tmp.t is a list of data.frame
objects. This code works well in 2.6.0.
...snip..
library(gplots)
for (i in names(tmp.t)) {
bmp(filename=paste(i, "_", Sys.Date(), ".bmp", sep=""),
width=1038,
2010 Aug 18
3
mtext coordinates
Un texte encapsul? et encod? dans un jeu de caract?res inconnu a ?t? nettoy?...
Nom : non disponible
URL : <https://stat.ethz.ch/pipermail/r-help/attachments/20100818/5f203714/attachment.pl>
2010 Sep 08
2
saving heatmaps in graphical format that can be edited in graphic editor tools
I generated a heatmap in R using the following commands:
> mydata <- read.csv(file="Data.csv", header=TRUE, sep=",")
> mydata <- mydata[rowSums(mydata[,-1]^2) >0, ]
> rownames(mydata)=mydata$Name
> mydata <- mydata[,2:253]
> mydatamatrix <- data.matrix(mydata)
> mydatascale <- t(scale(t(mydatamatrix)))
> hr <-
2009 Sep 20
1
Truncated plot in the output file
Dear all,
I made a large plot and wanted to save it as a tif file.
I first opened and specified the size of the window.
windows(12,17,rescale="fixed")
Then I plot a heatmap using heatmap()
when I saved the plot by using "Save as" in the file menu or
savePlot("heatmap", type="tif"), the plot in the output tif file is
truncated. Only the upper part of the
2009 Aug 12
3
How to label and unlabel points on scatterplot with mouse pointer
Dear all,
How can I label/unlabel points on scatterplot with mouse pointer. As the
mouse approches near to point, it should label the closest point, then
unlabel when it moves away.
How can I do in R? I be very thankful.
Thanks and Regards,
Hitesh Singla
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
2008 Sep 04
2
Adding a legend to R graph device with several plots (no to individual plots!)
Dear Users, I already posted this question: it either went unnoticed,
or it is to basic (if this is so, please sent me a hint).
I would like to know if there is a way to add a common
legend to an arrangement of plots. In the example below, I get four
plots in my device. each one has a density for 1995 and one for 2006.
I have found that using legend or smartlegend I can add a legend to
each plot,
2007 Jan 26
1
Inferring dimensions on bitmap device from par()
Hi,
I am trying to infer the dimension of an opened bitmap (png, jpeg,
bitmap device...) from par() parmeters. From the help on par(), I
found that:
> dim <- c(400, 200)
> png("foo.png", width=dim[1], height=dim[2])
> dim2 <- par("din") * par("cra") / par("cin")
> dev.off()
> dim2
[1] 399.9999 199.9999
I've tried the above on
2004 Sep 14
1
documentation error par("cin") and par("cra") (PR#7227)
Dear all,
the help of par() claims that
cin and cra are
c(width, height)
but it appears to be rather
c(height, width)
Best regards
Jens Oehlschl?gel
> plot.new()
> strheight("W", unit="inches")
[1] 0.1354167
> par("cin")
[1] 0.1354167 0.1875000
> version
_
platform i386-pc-mingw32
arch i386
os mingw32
2009 May 27
3
Axis label spanning multiple plots
Hello
I need to plot 3 graphs in a single column; the top two plots have the
same title, and I would like it to be written only once, centered
horizontally and spanning the two plots. Something like
t +------------+
| |
i | |
| |
t +------------+
l +------------+
| |
e | |
| |
1 +------------+
t
2008 Oct 19
1
convert lines to inches
Hi,
how can I convert the unit "lines" of par("mar") into inches?
par("mai") could help, but does not (see code below).
I want to plot a curve in a predefined size in pdf (I add some margin
space to the plot width&height, everything is in cm):
pdf("test.pdf",width=(20+2+4)/2.54,height=(10+3+1)/2.54)
plot(10:30,
2012 Dec 13
3
Combined Marimekko/heatmap
Hi all,
I'm trying to figure out a way to create a data graphic that I haven't ever seen an example of before, but hopefully there's an R package out there for it. The idea is to essentially create a heatmap, but to allow each column and/or row to be a different width, rather than having uniform column and row height. This is sort of like a Marimekko chart in appearance, except that
2008 Jul 02
2
position legend below x-axis title
Dear helpers,
I'm using a R script on several different datasets, which makes that
axis scales may vary quite a lot from dataset to dataset. So what I'm
looking for now, is how to automagically find out how to position the
legend (horizontal) in the space below the x-axis title, and how to
make sure that the legend is within the limits of the lower inner or
outer margin?
I'm aware of
2013 Mar 09
1
get current plot dimensions?
Hi R users,
I find par("pin") is kind of confusing (or maybe just me?). The manual said
it will give " The current plot dimensions, ‘(width,height)’, in inches."
The word "current" is the key here. I thought it would give the dimensions
of the to-be plot, but it actually gives the dimension of the finished plot:
> layout(matrix(c(1,2,3,4), nrow=2), width=c(1,3),
2005 Jun 01
1
panel.axis() & grid/lattice settings
Hello,
I wish to customize the tick marks and labels of axes in panels produced by
high-level lattice functions, namely xyplot. I know I can use the scales
argument to specify values for rot, cex, etc. in the top-level call.
However, I am interested in determining values for cex and rot based on the
current panel / viewport and device. More specifically, I would like to make
adjustments when
2006 Apr 07
2
Dealing with missing values in HeatMap generation
Hi,
I want to generate a heatmap for my data (in a matrix). However, the
data has some missing values (represented as blank).
I get the following errors (with the blanks and with blanks replaced by
NA and including the option rm.na = TURE):
> filename = "input_heatmap.txt"
> g <- as.matrix(filedata)
> fg <- rainbow(nrow(g), start=0, end=.3)
> gg <-