Displaying 6 results from an estimated 6 matches for "readpicture".
2010 Jul 30
1
Reading .eps file created in Illustrator
Hello,
I am trying to import an .eps file created with Adobe Illustrator and
plot it in a Quartz window (I am using R 2.11.1 GUI 1.34 Leopard build
32-bit (5589) on MacOSx.5.8).
I thought of using the PostScriptTrace() to convert my .eps file to
RGML, and then use readPicture to plot the file, but the first step
already fails (cf below).
I also had a look at the add.image( ) example, which does work on my
screen.
Ultimately, I would like to plot my picture and let the user click on
different parts to run different actions.
Thanks for any help or alternative ways t...
2011 Jul 30
1
grImport symbols
...ve to a third location
5 10 lineto % line to a fourth location
closepath % connect back to the start location
0 setgray % set the drawing colour to black
fill % fill the current shape"
cat(petal.ps, file="petal.ps")
library(grImport)
PostScriptTrace("petal.ps")
petal <- readPicture("petal.ps.xml")
grid.symbols(petal, 1:10/10, 1:10/10, size=0.1) # OK
grid.symbols(petal, 1:10/10, 1:10/10, size = seq(0.01, 0.1,
length=10)) # Warning and weird shapes
sessionInfo()
R version 2.13.1 (2011-07-08)
Platform: i386-apple-darwin9.8.0/i386 (32-bit)
locale:
[1] en_GB.UTF-8/en...
2009 Mar 28
7
unicode only works with a second one
I'd like to paste a zodiac sign on a graph, but it only prints it when
I add another unicode ( \u3030) to the desired \u2648 - why?
See the examplecode (compare the orange with the skyblue):
plot(c(-1,1),c(-4,-2),type="n")
text(x=0,y=-3.0,labels="\u2648 \u3030",cex=2.3,col="skyblue")
text(x=0,y=-3.2,labels="\u2648",cex=2.3,col="orange")
2009 Nov 03
1
fill map with gradient: package?
Hi,
I'd like to fill an existing svg (or png) map with gradient colors.
In detail: The file
http://commons.wikimedia.org/wiki/File:Karte_%C3%96sterreich_Bundesl%C3%A4nder.svg
should be filled with the population density data from this table:
http://de.wikipedia.org/wiki/%C3%96sterreich#Verwaltungsgliederung
choosing the right color saturation (or whatever). The final result
should be something
2011 Sep 18
2
Add png image outside plot borders
I am trying to add a copyright disclaimer outside the plot borders of
some images I have created. I can use mtext() to add the written
portion, but I would like to have the Creative Commons license image
(http://en.wikipedia.org/wiki/File:Cc.logo.circle.svg) before the
text. I've found that I can plot a .png image inside the plot
boundaries using rasterImage() but I can't figure out how to
2012 May 22
2
package grid: mirror grob objects along an axis
Hi everyone
I'd like to flip grobs (grid graphical objects) along an axis, e.g. flip grobs
horizontally or vertically. I couldn't find any hints, neither in the
documentation nor by searching the web. Does anybody know how to achieve this?
Cheers
/thomas