Displaying 20 results from an estimated 3000 matches similar to: "Fill a polygon with a pattern"
2008 Mar 06
1
write in rimage package
Is there any way to write an imagematrix generated by the rimage package?
Reproducible example:
library(rimage)
x <- read.jpeg(system.file("data", "cat.jpg", package="rimage"))
png("newcat.png")
plot(x)
dev.off()
The newcat.png image is different from the original file, because
there are ugly white borders around it.
Alberto Monteiro
2012 May 12
7
[Patches] mesa/nv30: Diverse set of patches that improve NV3x render quality V2
A reworked version of 3 out of 4 patches mentioned earlier.
[1/4]: Fixes nearly all piglit vertprog testcases, due to now being able to pass the results on to the fragment shader. V2: rename samplers to texcoords.
[2/4]: Fixes shader compiler assertion errors, as some source registers do not exist for certain operations. Fixes several piglit tests when mesa is compiled with --enable-debug
[3/4]:
2010 May 09
1
Plot polygon in 3D with rgl
Dear R-helpers, an rgl-ers in particular,
what is the easiest way to plot a section of a plane in 3D, that is
given by the xyz coordinates of the outline?
Suppose I have a polygon - which I know for sure is a set of
coordinates on the same plane. One method I found is to use surf.tri
from the geometry package, and then plot the triangles with
rgl.triangles. This method is not perfect though,
2003 Aug 13
6
placing labels in polygon center ?
Dear all,
is there any function to calculate the center of a polygon mass in R?
Actually I need to find the best location within polygons to place labels.
Thanks for any hint
Jens Oehlschl?gel
--
COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test\ --------...{{dropped}}
2006 Sep 30
1
Simple graphics
Is there any way that I can do something like this:
png("file.png", width=200, height=200)
polygon(c(50, 50, 150, 150), c(50, 150, 150, 50))
dev.off()
and then have a png file with a 100 x 100 pixels rectangle in the middle
of it? It seems that when I call "plot", it redefines the image coordinates
to some "optimized" value and then I lose any information to
2020 Oct 22
0
3d plot of earth with cut
On 21/10/2020 8:45 a.m., Balint Radics wrote:
> Hello,
>
> Could someone suggest a package/way to make a 3D raster plot of the Earth
> (with continent boundaries), and then make a "cut" or "slice" of it such
> that one can also visualize some scalar quantity as a function of the
> Radius/Depth across that given slice ?
>
> Formally, I would have a
2001 May 23
2
POLYGON: fill pattern instead of colors?
Hello all,
I'm using R1.2.2 and wonder whether there is already
a new (unofficial) version that supports fill patterns
for polygon().
thanks
M.E.
--
+-------------------------------------------------------
| Marcus Eger
+-------- ><> -------------------------------------------
| E-Mail: eger.m at gmx.de (NEW)
| marcus.eger at physik.uni-marburg.de (OLD)
| WWW:
2009 Jun 26
1
gradient fill of a grid.polygon
Dear list,
Following a recent enquiry, I've been playing with the idea of creating a
colour gradient for a polygon, using the Grid package. The idea is to draw a
number of stripes of different colours, using the grid.clip function. Below
is my current attempt at this,
library(grid)
rotate.polygon <- function(g, angle=0){ # utility function, works fine
matR <- matrix(c(cos(angle),
2020 Oct 21
6
3d plot of earth with cut
Hello,
Could someone suggest a package/way to make a 3D raster plot of the Earth
(with continent boundaries), and then make a "cut" or "slice" of it such
that one can also visualize some scalar quantity as a function of the
Radius/Depth across that given slice ?
Formally, I would have a given, fixed longitude, and a list of vectors
{latitude, radius, Value}
that would show
2008 Nov 21
2
rgl lighting question
Hi, I'm using rgl to generate a 3D surface plot and I'm struggling to
get the lighting correct. Currently the surface gets plotted, but is
very 'shiny'. On rotating the view, I get to see parts of the surface
- but overall I don't see much detail because of the spotlight like
lighting.
I've played around with the specular, ambient and diffuse but I can't
2015 May 26
2
[PATCH 2/2] nv30/draw: switch varying hookup logic to know about texcoords
On 26.05.2015 02:49, Ilia Mirkin wrote:
> On Mon, May 25, 2015 at 8:37 PM, Tobias Klausmann
> <tobias.johannes.klausmann at mni.thm.de> wrote:
>>
>> On 25.05.2015 21:29, Ilia Mirkin wrote:
>>> Commit 8acaf862dfe switched things over to use TEXCOORD instead of
>>> GENERIC, but did not update the nv30 swtnl draw paths. This teaches the
>>> draw
2012 Aug 27
1
RGL plot : lighting problem when triangle3d and persp3d are used in the same plot
Dear all,
I have tried to plot a triangular matrix with the function persp3d(rgl).
for example
z=rbind(c(1,NA,NA,NA),c(5,3,NA,NA),c(4,2,9,NA),c(8,6,5,11))
x=1:4
y=1:4
persp3d(x,y,z,color="gray")
The two extreme points are not plotted (value=1 and value=10). It seems
because the half of the matrix have 'NA' and perp3d need planar
quadrilateral face. So I decided to use the
2006 Dec 31
1
rimage package broken with fedora upgrade
Dear R list members
I would be grateful if anyone could guide me to a solution for fixing my
rimage package problem described below.
I recently upgraded my machine from fedora core 3 to fedora core 6 and
then upgraded R from version 2.3.1 from version 2.4.1.
I then fired up R, tried to load the rimage library and received the
following messages:
> library(rimage)
Error in dyn.load(x,
2007 Oct 02
1
Cannot Install rimage
I'm trying to install rimage in R version 2.5.1 running on Fedora 6
(kernel 2.6.22.7-57.fc6 with the headers and gcc installed, along with
fftw2 and libjpeg and headers):
> install.packages("rimage")
Warning in install.packages("rimage") : argument 'lib' is missing: using
'/usr/lib/R/library'
trying URL
2008 Nov 14
2
problem in downloading the rimage package
I am using a 64 bit machine with CentOS5. I am getting the following errors
when I try to install the rimage package
g++ -shared -L/usr/local/lib64 -o rimage.so equalize.o fftw_access_func.o
freqfilters.o interface.o jpegio.o laplacian.o matrix.o smooth.o sobel.o
-ljpeg -lfftw
/usr/bin/ld: /usr/local/lib/libfftw.a(fftwnd.o): relocation R_X86_64_32
against `a local symbol' can not be used when
2006 Nov 07
2
wrong fill colors in polygon-map
Dear all,
I would like to produce a map with information about the patenting
activity in German districts, by coloring districts with different
degrees of patenting activity in different colors. I work with the
packages maptools, maps and spdep. The map data is read from an external
.shp file (+ the corresponding .shx and .dbf files). Plotting a map with
the IDs or the patenting indicator itself
2013 Sep 19
3
How do I ensure that the polygon in spatstat::owin(poly=<polygon>) does not have “negative area”
I am a new user of the R spatstat package and am having problems creating a
polygonal observation window with owin(). Code follows:
library("maps")
library ("sp")`
library("spatstat")
mass.map <- map("state", "massachusetts:main", fill=T) # This returns
a data frame includding x and y components that form a polygon of
massachusetts mainland`
2010 Sep 27
2
rimage package problems
Hi all,
I tried to install the rimage in order to get to the function
?read.jpeg. However, I get this error, independent what mirror I
choose:
install.packages("rimage")
--- Please select a CRAN mirror for use in this session ---
Warning message:
In getDependencies(pkgs, dependencies, available, lib) :
package ?rimage? is not available
>
Does anybody know what happend with the
2008 May 19
2
Draw Polygon with a Circular Side
Hello Friends!!!
I would want draw a circular histogram, and I would like draw a polygon with
a circular side. This is easy if I use the functions polygon and arc, but I
want that the polygon with a circular side have background colour. The
polygon created with function polygon can have background colour, but the
surface created with function arc can?t have background colour.
How I could create a
2016 Apr 27
1
Determine if a set of x and y-latitude points are inside of a polygon using R
Objective: Determine if a set of x and y-latitude points are inside of
a polygon using R.
Lets say I have 9 polygons. Where I have labeled the polygons to be
checked from 1-9. The problem I?m running into is running the
point.in.polygon to check if those points are in one of several
polygons, as my code overwrites the result.
To accomplish this I am using the R-built in function called