Displaying 20 results from an estimated 1000 matches similar to: "figure with inset"
2007 Oct 18
1
Lattice fails to draw insets
Hello all lattice experts!
I'm currently trying to plot inset figures in my lattice graphics. The
plot is composed out of two panels and in each panel I want to show an
inset figure which is a closeup of the data in each panel. Thus in each
panel I call xyplot again to plot the inset which I place in a grid
viewport. Nevertheless, once my first inset plot is drawn, lattice
aborts with an
2008 Aug 03
2
How do I get an inset graph (i.e. graph within a graph)?
Hi, all,
How do I get an inset graph (i.e. graph within a graph)? Your input
is greatly appreciated.
Best wishes,
Art
University of Washington
Department of Medicinal Chemistry
2011 Sep 27
2
inset one map on top of another map
I want to overlay a small inset map on top of another map, but I can't
figure out how to do it.
For example, here are two different maps:
# map 1 - Ohio
map("state", region= "ohio")
# map 2 - US with Ohio darkened
map("state")
map("state", region="ohio", fill=T, add=T)
I would like to add map 2 as a small inset in the corner of map 1.
I
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
2007 Jun 19
2
axis labels in multiple plots
Hi,
I'am trying to make a multiple bar plot over a map and I'm having difficulties with the distance
between axes labels and the axis. Trying to control this with mgp does not help because it
controls both axes simultaneously. For example, with default values (mgp = c(3, 1, 0)) y-axis
labels are ok, but x-axis labels are not. Setting mgp = c(3, 0, 0) gives good x-axis labels but
the
2012 Apr 20
1
Ternaryplot as an inset graph
Hello
I am trying to add a ternary plot as a corner inset graph to a larger
main ternary plot. I have successfully used add.scatter in the past for
different kinds of plots but It doesn't seem to work for this particular
function. It overlays the old plot rather than plotting as an inset.
Here is a simple version of what I'm trying. Note that if I change the
inset plot to be an ordinary
2008 Dec 05
1
Trouble with gridBase and inset plots
Dear All,
I ma having a trouble in generating a figure containing 3 insets with
the gridBase package.
I always get an error message of the kind:
Error in gridPLT() : Figure region too small and/or viewport too large
No matter which parameters I choose. The plots works nicely with two
insets only, but when I try adding the third one, my troubles begin.
I am probably doing something wrong in the
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
2008 Jun 18
1
Histogram inset into another histogram
Dear R users and helpers,
I'm trying to find an example of a histogram plot as an inset (upper
right or left corner) of another histogram.
Anyone has an example of that?
Thanks for your help,
V?ctor.
--
-----------------------------------------------------------------------
V?ctor Homar Santaner
Grup de Meteorologia
Edif. Mateu Orfila Tel: +34 971 17 1376
2008 Feb 18
1
Plotting a legend outside the figure - units
Dear R gurus,
I am trying to plot a legend in the margins of a figure. The basic idea is to have two (or more) plots on the same figure, but then to have a common legend at the bottom of the plot. The approach that I have taken is to setup the figures, then do a "dummy" plot of the legend to determine the height of the legend box (ie from the value returned by the legend() command). I
2007 Sep 13
1
minimize white space around lattice plot
Dear list,
I'm trying to produce a plot via xyplot with minimal sourounding white
space. However, I cannot find the options in xyplot, ps.options or
wherever which prevents lattice from drawing quite some white space
around my plot. However, this is quite a problem for me as I want to
produce an inset plot inside another lattice-plot. I'm using the panel
function to open a viewport and
2008 Aug 03
0
gmaps, projection, inset
Running R version 2.6.1 under Gentoo Linux, I'm trying to produce a
thematic map of the USA using the gmaps package. The result thus far
has two problems from my point of view.
First, the projection (Miller cylindrical?) elongates southern states
and flattens northern ones unattractively. I'd prefer Albers conic
projection or something similar.
Second, the inset for Alaska is placed
2003 Oct 13
1
Rotate a plot, and subplot
Hi all,
Is there a way to rotate a plot, e.g. a histogram, by a certain angle
(90/180/270 degress)? I spent hours trying to figure out how this is
done, but without success.
Also, I'm looking for an equivalent to the S-Plus "subplot" command to
insert a kind of "thumbnail" graphic into a bigger one. How is this best
done in R?
Thanks for your help
Pascal
2003 Nov 21
3
plot map of areas
Hi all,
Given a number of points (x,y) in a plane, I'd like to plot a map of
polygons, so that
1) each polygon contains exactly one point
2) the polygon defines the area for which this specific point is
closer than any other point.
It's a bit like a map of areas "influenced" by that point, and it's
obviously a matter of intersecting the perpendicular bisectors
2006 May 10
2
Legend titles in log plots broken? (ver. 2.2.1)
Legend titles work in linear plots:
curve(1/x, xlim = c(0, 1))
legend(x = 'topright', inset = 0.04,
legend = '1/x', lty = 1,
title = 'Legend Title')
But when you change to a log plot on either dimension things get screwy:
curve(1/x, xlim = c(0, 1), log = 'y')
legend(x = 'topright', inset = 0.04,
legend = '1/x', lty = 1,
2009 Feb 25
2
A Modest Definition List Proposal (David E. Wheeler)
Taking David's example further, here is a first try:
id | name | description | more info
-----+---------+-------------------+-----------------
6 | Inset | An inset element | just one element
8 | Stories | Another element | another element
: with 2 lines, without
: colons on the left.
9 | Other
2008 Aug 04
2
thematic map of USA
My goal is to prepare a thematic map of the US, with states shaded
according to their values for a variable of interest. I would like to
include an inset for Alaska in the upper left and an inset for Hawaii in
the lower left. If possible, I'd like to use Albers conic projection, or
something similar. Thus far I have tried using the maps package with
its state database (which omits
2003 Nov 20
5
Find value in vector (or matrix)
Hi all,
Is there a function to check if a particular value is contained in a
vector? I've looked at grep in the hope that I could use a Perl-like
syntax, but obviously it's different...
I'd like to do something like:
y <- c("a","b","c")
if("a" in y)
{
# "a" is not in y
}
Also, is there a way to
2009 Jan 30
1
run query using rexcel runrfile and rodbc sql query
Hi,
I'm using R-2.8.1 for windows. I wrote a script calls the RODBC
package to run sql queries against an oracle database. It runs fine
when run from the rconsole and returns a data.frame with a summary for
a set of experiments. I want to run this script using the
rinterface.RunRFile command in an excel plugin, using the rexcel
package. When I run the code from my excel plugin I
2004 Feb 26
2
limit to complex plots?
Hello all.
I am trying to create one figure, divided into 6 graphs/plots each with an inset sub-figure. I can use to layout command to generate one figure with one inset sub-figure, but cannot seem to do it for multiple figures on one page.
I've tried a test with the following code:
layout(matrix(c(1,2,3,4), nrow=2, byrow=TRUE))
plot(rnorm(10), rnorm(10))
plot(rnorm(10), rnorm(10))