Displaying 20 results from an estimated 4000 matches similar to: "TeachingDemos question: my.symbols() alignment problems in complicated layout"
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,
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
2007 Feb 26
3
PLotting R graphics/symbols without user x-y scaling
Is it possible to add lines or other
user defined graphics
to a plot in R that does not depend on
the user scale for the plot?
For example I have a plot
plot(x,y)
and I want to add some graphic that is
scaled in inches or cm but I do not want the
graphic to change when the x-y scales are
changed - like a thermometer, scale bar or
other symbol -
How does one do this?
I want to build my own
2003 Nov 26
1
wishlist item: symbols() to accept asp argument? (PR#5328)
Here is a potential wishlist item for adding an argument (asp) to
symbols(). The following code produces a postscript file with two
pages; both should show a circle of radius 2 units. Horizonal and
vertical arrows are drawn to check that the circle is of the correct
radius; in the first plot, the circle is wrong. To fix this, I found
that I needed to first set up the plot bounds, using xlim,
2007 Sep 30
1
clipping viewports
Dear useRs,
Why are the rotated blue and yellow boxes in the example below clipped outside of 6 x 6 inch window in the middle of the page?? Where does the 6 x 6 inch window come from? I would like to make use of the entire page.
> library(grid)
> pdf(file = "FarmMaps.pdf", paper = "a4")
> pushViewport(viewport(
+ width = unit(7.6, "inches"), height =
2008 Dec 01
2
align two lattice plots with grid
Dear list,
I need to align two plots on top of each other for comparison (they
only have the x-axis in common). When the y-labels have a different
extent, I cannot find a way to align the x-axes, as illustrated below,
> library(grid)
> library(lattice)
> x <- seq(0, 10, length=100)
> y <- sin(x)
> y2 <- 10*sin(x)
> f <- rep(c("1", "2"),
2005 Dec 06
2
figure with inset
I am trying to plot a figure within a figure (an inset that shows a closeup of
part of the data set). I have searched R-help and other sources but not found a
solution.
What I would like to do is
(1) produce a plot
(2) specify a window that will be used for the next plot (in inches or using the
coordinate system of the plot produced in (1)
(3) overlay a new plot in the window specified under (2)
2007 Feb 12
1
Width of a plotting point (in inches) in grid package
Hello,
I'm trying to determine the width of a plotting point (in inches) in the
grid package. I naively thought I could create a pointsGrob with only one
point and get the width (as tried below), but this results in an object with
a size of 0inches (changing cex has no effect). Does anyone have a better
approach? Of course, it would be dependent upon the graphics parameters and
viewport...
2006 Feb 28
2
jpeg and pixels
Dear R People:
When using the jpeg function for plotting,
is there a way to set the size in inches, please?
There is an option for width and height in pixels, but
not inches.
Any suggestions would be welcome!!!!!
R Version 2.2.1 Windows
Thanks in advance!
Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto:
2009 Jan 19
2
plotting arrows with different colors and varying head size
Dear list,
I would like to plot arrows with different colors according to arrow length, and also (if
possible) with head size proportional to arrow length. The idea is to make a quiver-like plot of
matlab with wind speed data.
So far, I´ve been able to use different colors, but I need to find a more efficient way to recode
arrow length intervals into colors. On the contrary, I can't define
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
2003 Mar 17
1
postscript and ps.option metrics
Good Afternoon All,
I am working on a project to generate a particular celeration graph that requires a very specific height and width in the format of the postscript output.
I have attempted to specify my height and width parameters in inches as I found in the R help documentation, but this produces a graph much smaller than what it should if the standard metric is indeed inches.
Since inches
2010 Sep 20
1
Adjusting Font Size: lattice / bwplot
Hello,
If you run the following code with lattice installed:
bwplot(voice.part ~ height, data=singer, xlab="Height (inches)")
There will be some text in the graph e.g. Soprano 1, Soprano 2, etc -
60, 65, etc and the title: Height (Inches). How can one make the font
for this text larger and/or bold? Also, is there a way to thicken or
bold the lines of the box and whisker plot?
Thank
2003 Apr 30
3
How to put 2 or more graphics in the same page ?
Hi,
I have a naive question...
I have produced about 60 graphics and want to put them in one postscipt
file , possibly 4 graphics on each page. I can put all of them in the
same file (that's ok), but I can't find the way to put 2 or more
(precisely 4, in my case) graphics on the same page (each graphics is
about 6 inches (width) X 4 inches (height)).
Any help would be very much
2003 Apr 23
3
Changing the size of the bounding box
Greetings all:
I have to create a graph that has very specific dimensions for
publication purposes. The graph is a semilog scaled graph and the
axes must range from 1 to 1,000,000 on the y axis and 0 to 100 on the
x axis. The x axis should be exactly 8 inches and the y axis should
be exactly 5.25 inches. I've been able to set the plot area to 8 x
5.25 using the par(pin=c(8,5.25)). The
2004 Dec 10
1
subset bug?
I ran into a problem with "subset" while working at home that I am not sure is a bug or not. I defined a custom function to take a data frame of tree positions, sizes, and types (containing the columns TRT, COMP, PLOT, X, Y, DBH and CON) and wanted to make a stem map of the plot using different symbols and colors to represent the different types of tree stems. I copied a bit of the
2012 Aug 11
1
device "mismatch", coordinates trouble with X11 and pdf devices
Greetings.
I'm trying to understand a problem on a Dell Laptop. Details below,
also uploaded the R working example that I pasted below.
http://pj.freefaculty.org/scraps/testSymbols.R
> sessionInfo()
R version 2.15.1 (2012-06-22)
Platform: x86_64-pc-linux-gnu (64-bit)
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5]
2007 Jun 15
3
[OT] 'gv' and fractional points
Hi Folks,
This is off-topic R-wise, but it may be close to
the heart of many R-users, so I think it may be
the best place to ask!
Users of 'gv' (the "front end" to ghostscript) will
be aware of the little window which gives you the
x-y coordinates (in points = 1/72 inch) of the position
of the "cross-hair" mouse cursor. These coordinates
are those of the corresponding
2009 Feb 17
2
creating a map
I'm trying to create a fairly basic map using R. What i want to get is the
map of the country with circles representing a count of students in each
state.
What I've done so far is as following -
map("state")
symbols(data1$count,circles=log(data1$count)*3,fg=col,bg=col,add=T,inches=F)
this gives me the map of the country, but one that's not populated by my
counts.
Does
2007 Mar 06
1
Obtaining figures with exactly placed points
Dear list,
I have to plot some geometrical shape given as list of points. My need
is the following: let's say my shape is a 1 inch large square; how can
I plot it with R in a graphic format that gives me an image *exactly*
1 inch large? I tried to set oma, mar and fin parameters, but with no
success.
I'm currently using the xfig driver for the final images are to be
included in latex