Re: [R] Manipulating Plots

2015-01-06 Thread Rolf Turner



I don't think this has any relevance.  The deldir package doesn't use 
lattice graphics.  I think that Jean Adams has answered the OP's 
question adequately.


cheers,

Rolf

On 07/01/15 07:05, Richard M. Heiberger wrote:

Is this what you are looking for.  This is in lattice graphics.

library(lattice)
x - seq(0, 4*pi, length=101)
y - sin(x)
G - xyplot(y ~ x, type=l)
G
H - update(G, xlim=c(4,6), ylim=c(-1, -.4))
H

On Tue, Jan 6, 2015 at 12:23 PM, Raphael Päbst raphael.pae...@gmail.com wrote:

Hello,
I have a somewhat complicated question and hope, someone can help me
or that there is a solution at all for my problem.
I am using R to plot the results of a Voronoi-Tesselation. I am
however only interested in a small part of the plot, around the
center. Is there a way to cut out the central part of the plot and
enlarge it in R? I have quite a few of these plots and cutting and
enlarging the image manually with another software is only the last
option, if there is no other way to do it.

I hope this explains my problem clearly enough and there is a solution for it.



--
Rolf Turner
Technical Editor ANZJS

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Manipulating Plots

2015-01-06 Thread Raphael Päbst
Hello,
I have a somewhat complicated question and hope, someone can help me
or that there is a solution at all for my problem.
I am using R to plot the results of a Voronoi-Tesselation. I am
however only interested in a small part of the plot, around the
center. Is there a way to cut out the central part of the plot and
enlarge it in R? I have quite a few of these plots and cutting and
enlarging the image manually with another software is only the last
option, if there is no other way to do it.

I hope this explains my problem clearly enough and there is a solution for it.

Many thanks in advance!

Raphael

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Manipulating Plots

2015-01-06 Thread Raphael Päbst
The relevant bit of code should be this one:

#Getting a list of Voronoi-Cells:
VoronoiCells - tile.list(DelTriCor)
# plotting all of them:
figure()
plot(VoronoiCells,fillcol=CellColor,close=TRUE,xlim=xlim,ylim=ylim)

I hope this helps.

All the best!

Raphael

On 1/6/15, Adams, Jean jvad...@usgs.gov wrote:
 It will be easier for folks to help you if you provide example code that
 produces a plot like the one you are dealing with.

 Jean

 On Tue, Jan 6, 2015 at 11:23 AM, Raphael Päbst raphael.pae...@gmail.com
 wrote:

 Hello,
 I have a somewhat complicated question and hope, someone can help me
 or that there is a solution at all for my problem.
 I am using R to plot the results of a Voronoi-Tesselation. I am
 however only interested in a small part of the plot, around the
 center. Is there a way to cut out the central part of the plot and
 enlarge it in R? I have quite a few of these plots and cutting and
 enlarging the image manually with another software is only the last
 option, if there is no other way to do it.

 I hope this explains my problem clearly enough and there is a solution
 for
 it.

 Many thanks in advance!

 Raphael

 __
 R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide
 http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.



__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Manipulating Plots

2015-01-06 Thread Richard M. Heiberger
Is this what you are looking for.  This is in lattice graphics.

library(lattice)
x - seq(0, 4*pi, length=101)
y - sin(x)
G - xyplot(y ~ x, type=l)
G
H - update(G, xlim=c(4,6), ylim=c(-1, -.4))
H

On Tue, Jan 6, 2015 at 12:23 PM, Raphael Päbst raphael.pae...@gmail.com wrote:
 Hello,
 I have a somewhat complicated question and hope, someone can help me
 or that there is a solution at all for my problem.
 I am using R to plot the results of a Voronoi-Tesselation. I am
 however only interested in a small part of the plot, around the
 center. Is there a way to cut out the central part of the plot and
 enlarge it in R? I have quite a few of these plots and cutting and
 enlarging the image manually with another software is only the last
 option, if there is no other way to do it.

 I hope this explains my problem clearly enough and there is a solution for it.

 Many thanks in advance!

 Raphael

 __
 R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Manipulating Plots

2015-01-06 Thread Adams, Jean
It will be easier for folks to help you if you provide example code that
produces a plot like the one you are dealing with.

Jean

On Tue, Jan 6, 2015 at 11:23 AM, Raphael Päbst raphael.pae...@gmail.com
wrote:

 Hello,
 I have a somewhat complicated question and hope, someone can help me
 or that there is a solution at all for my problem.
 I am using R to plot the results of a Voronoi-Tesselation. I am
 however only interested in a small part of the plot, around the
 center. Is there a way to cut out the central part of the plot and
 enlarge it in R? I have quite a few of these plots and cutting and
 enlarging the image manually with another software is only the last
 option, if there is no other way to do it.

 I hope this explains my problem clearly enough and there is a solution for
 it.

 Many thanks in advance!

 Raphael

 __
 R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide
 http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Manipulating Plots

2015-01-06 Thread Adams, Jean
Raphael,

I'm assuming that the tile.list() function you're using is from the deldir
package.  I'm not sure what the figure() function does.  Using an example
tessellation from the help file for the tile.list() function, I created two
plots: one with the full view and one with the zoomed in view.

library(deldir)
x - runif(20)
y - runif(20)
z - deldir(x, y)
w - tile.list(z)

# full view
plot(w, close=TRUE)

# zoomed in view
plot(0, 0, type=n, xlim=c(0.2, 0.6), ylim=c(0.2, 0.6))
plot(w, close=TRUE, add=TRUE)

Jean


On Tue, Jan 6, 2015 at 11:43 AM, Raphael Päbst raphael.pae...@gmail.com
wrote:

 The relevant bit of code should be this one:

 #Getting a list of Voronoi-Cells:
 VoronoiCells - tile.list(DelTriCor)
 # plotting all of them:
 figure()
 plot(VoronoiCells,fillcol=CellColor,close=TRUE,xlim=xlim,ylim=ylim)

 I hope this helps.

 All the best!

 Raphael

 On 1/6/15, Adams, Jean jvad...@usgs.gov wrote:
  It will be easier for folks to help you if you provide example code that
  produces a plot like the one you are dealing with.
 
  Jean
 
  On Tue, Jan 6, 2015 at 11:23 AM, Raphael Päbst raphael.pae...@gmail.com
 
  wrote:
 
  Hello,
  I have a somewhat complicated question and hope, someone can help me
  or that there is a solution at all for my problem.
  I am using R to plot the results of a Voronoi-Tesselation. I am
  however only interested in a small part of the plot, around the
  center. Is there a way to cut out the central part of the plot and
  enlarge it in R? I have quite a few of these plots and cutting and
  enlarging the image manually with another software is only the last
  option, if there is no other way to do it.
 
  I hope this explains my problem clearly enough and there is a solution
  for
  it.
 
  Many thanks in advance!
 
  Raphael
 
  __
  R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
  https://stat.ethz.ch/mailman/listinfo/r-help
  PLEASE do read the posting guide
  http://www.R-project.org/posting-guide.html
  and provide commented, minimal, self-contained, reproducible code.
 
 


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Manipulating plots

2009-01-06 Thread Benjamin Modra
Hi all,

Is it possible to manipulate the properties of an active graph?  
I'm trying to manipulate the plots generated by extRemes into something 
suitable for a report, but the only change I can make successfully is add lines 
( abline(v=2) ).  For example, I'd like to be able to use standard instead of 
scientific notation, and remove the data points leaving the mean and CI lines. 
I've tried to manipulate it with rggobi but can't work out how to get a handle 
on the active graph.  I've tried to plot using the data structure in extRemes 
but there are some elements that are not suitable for export: 

from extRemes.log:
dd - get( FDNzeros)
z - dd[[models]][[ 1]]
rlplot( z=z, ci=0.05, add.ci=TRUE)

 write.table(z)
Error in as.data.frame.default(x[[i]], optional = TRUE, stringsAsFactors = 
stringsAsFactors) : 
  cannot coerce class gpd.fit into a data.frame


Any suggestions??

Thanks, Ben



  Stay connected to the people that matter most with a smarter inbox. Take 
a look http://au.docs.yahoo.com/mail/smarterinbox

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.