I've pratically resolved my problem (the code is under that), but a last thing
is not perfect:
when I use the function plot to call after the function polygon, there is a
marge between my raster and the window. I think it's the axis of the function
plot(), but I have not found how delete it.
You may be looking for the par settings of xaxs=i, yaxs=i, which
if you add them to the plot call will prevent the regular behavior
of adding 4% padding to the axis widths.
?par
-- David.
On May 18, 2011, at 8:27 AM, Pierre Bruyer wrote:
I've pratically resolved my problem (the code is
It's perfect, thank you!
I would like post the final code if someone need help in this subject, but I
try to correct
a last problem, how can I constrain the contourLines() function to take the
corner points of the map in his result ... it does not consider this point like
a contour point.
Le
I'm a French developer (so I am sorry if my english is not perfect). I have a
problem to smooth the contours of a map. I have a dataset with 3 columns, x, y
and z, where x and y are the coordinates of my points and z is evaluate to a
qualitative elevation and his representation is a set of
On 11-05-17 5:58 AM, Pierre Bruyer wrote:
I'm a French developer (so I am sorry if my english is not perfect). I have a
problem to smooth the contours of a map. I have a dataset with 3 columns, x, y
and z, where x and y are the coordinates of my points and z is evaluate to a
qualitative
On 17/05/2011 8:24 AM, Pierre Bruyer wrote:
Thank you for your answer, but the function spline() (and a lot of other
function in R) can't take in its parameters the original contour which are
define by a vector, i.e. :
If you post some reproducible code to generate the contours, someone
I don't think filled.contour gives you access to the contour lines. If
you use contourLines() to compute them, then you can draw them using
code like this:
contours - contourLines(V2b,levels=paliers)
for (i in seq_along(contours)) {
x - contours[[i]]$x
y - contours[[i]]$y
lines(
Thank you for your answer, but the function spline() (and a lot of other
function in R) can't take in its parameters the original contour which are
define by a vector, i.e. :
##creation of breaks for colors
i-1
paliers - c(-1.0E300)
I work with large datasets (1 points) so I can't post them , but my
function is :
create_map - function(grd, level ,map_output, format = c(jpeg), width_map =
150, height_map = 150,...)
{
##sp - spline(x = grd[,1], y = grd[,2])
grd2 - matrix(grd[,3],
The result is good, thanks a lot, but how can I with this method fill my raster
to color?
Le 17 mai 2011 à 15:43, Duncan Murdoch a écrit :
I don't think filled.contour gives you access to the contour lines. If you
use contourLines() to compute them, then you can draw them using code like
10 matches
Mail list logo