similar to: draw a 5cm x 3cm rectangle

Displaying 20 results from an estimated 500 matches similar to: "draw a 5cm x 3cm rectangle"

1997 May 11
2
R-alpha: Logarithmic scales
Here are another three problems with logarithmic scales: 1) segments() does not work with logarithmic scales. I suggest to change lines 962-973 in "plot.c": for (i = 0; i < n; i++) { if (FINITE(xt(x0[i%nx0])) && FINITE(yt(y0[i%ny0])) && FINITE(xt(x1[i%nx1])) && FINITE(yt(y1[i%ny1]))) { GP->col = INTEGER(col)[i % ncol];
1999 May 17
1
Character height & width in user co-ordinates
Is there an equivalent to the S-PLUS par()$cxy in R? Also, is it possible to get notice taken of some equivalent of \n in R when using text()? For what it is worth I am using RW-0.64.1. John Maindonald email : john.maindonald at anu.edu.au Statistical Consulting Unit, phone : (6249)3998 c/o CMA, SMS, fax : (6249)5549 John Dedman Mathematical
2010 Jan 12
1
barplot: border color when stacked
Dear R-users, I am using R version 2.10.1 under windows. In a barplot, I want to mark one of the bars with a special border color. For example: barplot(c(3, 7, 11), border = c(NA, "red", NA)) But how to do this when the bars are stacked? for example: barplot(matrix(1:6, ncol=3)) # border of second bar (i.e. the one with total height = 7) should be red again, I try: barplot(matrix(1:6,
2010 Nov 17
1
rasterImage and coordinate conversion
Hi, I have a plot and I would like to overlay a PNG image over it. I'm using the rasterImage function to do this, but the problem I'm facing is working out the coordinates of the upper right corner of the final image in user coordinates. That is I can place the image so the lower left is located at the bottom of the y-axis and the left end of the x-axis. Since my image is say 100px x
2012 Apr 27
3
kiteChart to show real values with scalebar
Dear R-users I hope someone could help me on this problem. I want to create a multiple kiteChart showing the real values with a scalebar on each indicating the scale . Here are some sample data to show what I want to achieve. Y <- read.table(textConnection("Sample1 Sample2 60 20 150 50 300
1999 Jan 29
1
cex
Hi, I was hoping someone could help me with this problem. I’m trying to produce what can be referred to as L’Abbe plots, where a character (my preference is a circle) is plotted at some specified co-ordinates and the size of the character is proportional to a weighting variable. I’ve tried this plot (x, y, type="n") size <- weight/mean(weight) for ( i in 1:length(x) ) { points
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,
2006 May 12
1
inches to centimeters in Graph settings
Hi R users, I made a few research on how to convert inches into centimeters for graphics settings (especially width and height of the graphic device). Apart from the function layout() wich can be settled in centimeters using lcm(), I found that writing a function that convert centimeters into inches (i.e. x/2.54) was probably the best answer. Is there somewhere any parameter that could help
1997 Jun 23
0
R-alpha: various graphics Q.
"contour" can't return a list of contours (it would be nice) "arrows" has different options from S-PLUS (no "open" or "rel" options, no "lwd" parameter or graphics parameter pass-through; "size" in S corresponds to "length" in R). [I know we needn't follow S-PLUS syntax slavishly, but it would be nice at least to
2007 Mar 02
2
plot with fixed axis proportion
I want to plot something (eg a circle) with a fixed ratio of the x and y axis, or (even better) with a fixed size when I print it. Output should then be a circle (actually it'll be someting more complicated) with radius 5cm and not an ellipse. I'm _sure_ this is not new, but after looking 45min for a solution, I post here... Thanks for help Thomas
2001 Aug 27
1
colorbar legend for image()
Hi, are there any plans to add a colorbar legend to image()? Or such a possibility already implemented which I just haven't discovered yet. Anyway, I will be willing to spent some time on the implementation if there isn't anyone working on that already. Thanks Thomas -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read
2005 Sep 09
1
measurement unit
Dear R-list, Could anybody tell me where to find information about changing the measurement unit from inch to centimeters? I read the help from X11, I read R-intro and I did some searhing in the R archives, but I couldn't find the answer. For example, I would like to produce a plot of a certain width and height: X11(width=10, height=5) and I would like these to be centimeters, rather
2008 Nov 07
0
barplot can put legend in wrong place, request option to override that (PR#13265)
This in an enhancement requestion, to add the capability to pass arguments through barplot() to legend(). I've created a version that does this. # Run this code; notice that the legend # is superposed over one bar: barplot(height = cbind(x = c(465,91) / 465 * 100, y = c(840,200) / 840 * 100, z = c(37,17) / 37 * 100), beside = FALSE, width =
2009 Mar 23
2
how to save a plot in a given size in inches or centimeters
Hi there ! I'm ploting graphics and I'd like to save them as a .jpeg file for example, but with a given size (in inches or cm). I tryed the function windows() but I think it just changes the size of the window and not the size of the graph that you're saving. Then I tryed with the function par(din=(width=... height=...) ) but I guess it's protected and I can't change the
2007 Aug 08
2
Relocating Axis Label/Title --2
Apologies for the previous mail (I sent it off too early by mistake). This is the correct example: rm(list=ls()) D_mean<-seq(-5,5,length=100) y<-exp(-D_mean^2/5) pdf("my.pdf") plot(D_mean,y,type="l",yaxt="n",lty=2,lwd=2,col="black", ylab = list(expression(paste(dN/dlogD[agg]," ["*cm^-3*"]"))), xlab = expression(paste(D[agg],"
2010 May 31
1
Suggested tidying up
Package grDevices has a function cm() to convert from inches to centimeters. Its definition is: cm <- function(x) 2.54*x As far as I can tell, the function is not used anywhere in the R sources (I grepped for "cm(", "cm)" and ", cm".) I did not check for all packages on CRAN, though. May I propose to remove this apparently useless function from the sources? [I
2011 Nov 14
1
Adding units to levelplot's colorkey
How to add units (e.g. "cm") to the color key of a lattice levelplot? The plots looks fantastic, but it would be nice to indicate somewhere near the end of the color key that the values associated with its colors are in centimeters or some other physical units. The only thing I find is the possibility to specify the labels so that one explicitly includes the units. That leaves
2010 Jul 13
1
dnorm Line Plot Graphics
Hello, 1. I have a number of snow depth measurements (centimeters depth) that were acquired in a row (linear transect). A: I am trying to plot the probability density function (PDF) of these points. When I use the "dnorm" command and line type = points, the PDF is displayed correctly. When I change the line type = line, it displays the PDF curve with numerous lines connecting multiple
2005 May 15
1
Re: SpanDSP TXFax and multipage faxes problems (aditional info)
Hi everyone ! I have some aditional info on problem with TXFax and sending multi-page TIFFs. I have made 6 different multi-page TIFFs (Group3 1D with fillbits EOL aligned - 3 pages one TIFF in lowres and one in hires, Group3 2D -3 pages againg in both resolutions , and Group 4 - 3pages in both resolutions), and then tried to send them to Panasonic KX-F1100, Panasonic KX-F500 and SpanDSP
2013 Jan 15
5
Duda gráficos - paper="a4"
Buenos días: A ver si alguien me puede iluminar, porque ya he sobrepasado los límites de mi paciencia y de mi imaginación con este asunto: Dado un gráfico creado con un plot (y funciones auxiliares como polygon, etc.) y una tabla creada debajo de ese gráfico (creada con addtable2plot), y dados unos text situados a modo de título encima del plot y otros encima de la tabla, ¿por qué cuando trato