read the posting guide https://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
--
Dr Paul Murrell
Te Kura Tatauranga | Department of Statistics
Waipapa Taumata Rau | The University of Auckland
Private Bag 92019, Auckland, New Zealand
64 9 373
changes.txt
On the other hand, I wanted to ask you for tutorials to start
understanding the grid package or what other recommendations you have
of introductions to that package (and their extensions...)
Paul MUrrell wrote some papers and a book, but there are also the
vignettes, type
Windows (R Gui &/or RStudio) using base R
plot() and friends?
I have several old examples somewhere that used to work (R < ~ 3), but
now no longer work as before.
Date: Mon, 25 Mar 2024 10:43:29 +1300
From: Paul Murrell
mailto:p...@stat.auckland.ac.nz>>
To: "Bickis, Mi
<https://stat.ethz.ch/mailman/listinfo/r-help>
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
<http://www.R-project.org/posting-guide.html>
and provide commented, minimal, self-contained, reproducible code.
--
Dr Paul Murrell (he/him)
Te Kura Tatauranga
unity
>>
>> It is possible to adjust the legend in combined ggplots using ggarrange
>> with
>> be positions top, bottom, left and right.
>> My question: Is there a function to change the position of the legend to
>> topright or bottomleft? Right and to
912, 2404, 2264,
3094, 448, 900, 1088, 214, 202, 4921, 3567, 229, 249, 968,
621, 2824, 1886, 1989, 2034, 265, 590, 2425, 1521, 762, 272,
600, 3928, 2811, 5552, 308, 2474, 2442, 1379, 2280, 2897,
2794, 2611, 761, 2795, 1110, 1623, 209, 810, 1681, 1642,
1092, 1677, 825, 2246, 779, 816, 226, 214, 908
BE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
<https://stat.ethz.ch/mailman/listinfo/r-help>
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
<http://www.R-project.org/posting-guide.html>
and provide commented, minimal, self-contained, reproducible
l
<http://www.R-project.org/posting-guide.html>
and provide commented, minimal, self-contained, reproducible code.
--
Dr Paul Murrell
Te Kura Tatauranga | Department of Statistics
Waipapa Taumata Rau | The University of Auckland
Private Bag 92019, Auckland, New Zealand
64 9 3737599 x85392
p..
lt;http://www.R-project.org/posting-guide.html>
and provide commented, minimal, self-contained, reproducible code.
--
Dr Paul Murrell
Te Kura Tatauranga | Department of Statistics
Waipapa Taumata Rau | The University of Auckland
Private Bag 92019, Auckland 1142, New Zealand
64 9 3737599 x85392
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
<https://stat.ethz.ch/mailman/listinfo/r-help>
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
<http:
Hi
On 8/03/23 15:27, Rusty Travis wrote:
On 3/7/23 13:12, Paul Murrell wrote:
Hi
I think the main issue here is that you are *drawing* text on the
graphics device, so I would only expect to see literal XML text output
in the result.
'''
Hope that helps
Thank you for you
g guide
http://www.R-project.org/posting-guide.html
<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:/
n/listinfo/r-help
<https://stat.ethz.ch/mailman/listinfo/r-help>
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
<http://www.R-project.org/posting-guide.html>
and provide commented, minimal, self-contained, reproducib
ble for my version of R (4.1.1 (2021-08-10)). But
I found it here https://github.com/pmur002/gggrid/releases/tag/v0.1-0
<https://github.com/pmur002/gggrid/releases/tag/v0.1-0>,
copied the code into your code, and it worked very well.
On 2021-10-26 19:18, Paul Murrell wrote:
> Hi
>
be either length
>> 1
>> or the same as the data (6): x and y
>>
>> Thanks for some help.
>>
>> Philip
>>
>> __
>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
el? I tried to assign the second
plot to an object p and then call grid.draw(p), or to assign g to the
second plot, but they did not work...
Thanks
--
Best regards,
Luigi
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mail
ee
https://stat.ethz.ch/mailman/listinfo/r-help
<https://stat.ethz.ch/mailman/listinfo/r-help>
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
<http://www.R-project.org/posting-guide.html>
and provide commented, minimal, self-contained, reproducible code.
--
ted, minimal, self-contained, reproducible code.
--
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x85392
p...@stat.auckland.ac.nz
http://www.stat.auckland.ac.nz/~paul/
__
R-help@r
my initial post?
The problem is that the modification of 'x' for midpoints makes the 'x'
irregular even if 'x' starts off as regular (when 'x' is a Date).
Paul
Cheers,
Chris
Am 15.04.2021 03:26 schrieb Paul Murrell:
Hi
Feeding R-help back in, in c
above there is no
difference between useRaster true and false plots.
Do you have a suggestion on how to continue?
Thanks a lot,
Chris
Am 14.04.2021 04:37 schrieb Paul Murrell:
Hi
I doubt it is intended (to deliberately exclude "difftime" objects).
Can you please supply a full image()
t.ethz.ch/mailman/listinfo/r-help
<https://stat.ethz.ch/mailman/listinfo/r-help>
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
<http://www.R-project.org/posting-guide.html>
and provide commented, minimal, self-contained, reproducible code.
--
Dr Paul Murrell
s-%s-*-*-%d-*-*-*-*-*-*-*"
$Mincho
[1] "-*-mincho-%s-%s-*-*-%d-*-*-*-*-*-*-*"
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
<https://stat.ethz.ch/mailman/listinfo/r-he
Not sure I agree with that. Paul Murrell put together plotmath around 2000
prior to the widescale development and adoption of the unicode standard
(corrections/modifications welcome!). So at the time, there really was no
other way to handle this for most OS'es. With UTF8 now being generall
rai...@krugs.de
Skype: RMkrug
PGP: 0x0F52F982
__
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, minim
ined, reproducible code.
--
Michael
http://www.dewey.myzen.co.uk/home.html
--
Michael
http://www.dewey.myzen.co.uk/home.html
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEAS
rpose is to check if my layout is correct. It must not
leave any side effect on the main plots.
From the help of function layout this line relates to layout.show
layout.show(n) plots (part of) the current layout, namely the outlines of
the next n figures.
It does not describe the behavior I am seeing
__
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.
--
Dr Paul Murrell
Department of
L 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, m
)
grid.vwline(c(0,1),c(1,0),c(1/1000,1/1000))
#The vwlines miss the central dot; (1,1) is outside the plot
__
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 h
advance!
Yours, Ferri
Gesendet: Sonntag, 11. November 2018 um 15:38 Uhr
Von: "Peter Dalgaard"
An: "Ferri Leberl"
Cc: r-help@r-project.org
Betreff: Re: [R] Line with linearly changing thickness
Hmm... I don't recall whether this has been packaged up, but Paul
Murrell tal
p, ...) :
one of more grobs overwritten (grab WILL not be faithful; try
'wrap = TRUE')
-- which is strange, given that I specified wrap = TRUE.
I proceed by running grid.draw(myGrob). According to Paul Murrell (R
Graphics, 2nd ed., page 239), using grid.grab(wrap = TRUE) is
"
/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.
David Winsemius
Alameda, CA, USA
'Any technology distinguishable from magic is insufficiently advanced.'
e, 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.
--
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Hi
Another option is to just rasterize the points (but leave the rest of
the plot vector). See ...
https://www.stat.auckland.ac.nz/~paul/Reports/rasterize/rasterize.html
Paul
On 04/09/18 06:20, Bert Gunter wrote:
1. Plot a random sample of the points (e.g. of rows of matrix/dataframe
conta
ype = "detailed")
[[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-gu
non-commutative triangle:
as( as( RGB(0.1,0.5,0.9), 'sRGB' ), 'HLS' )
H L S
[1,] 201.7339 0.6519387 0.8698137
as( RGB(0.1,0.5,0.9), 'HLS' )
H L S
[1,] 210 0.5 0.8
Note that 201.7339 0.6519387 0.8698137 != 210 0.5 0.8
___
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-containe
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.
--
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckla
tion:
Is there a way to draw the border inside of the bars instead of surrounding the
bars? (similar to border-drawing options in graphics software, like photoshop
or inkscape).
Here some example code:
x <- matrix(c(1:10), 2,5)
par(lwd = 5)
barplot(x, beside=T, border=rep(c(NA, 'black'),5), space=c(0.08,1),
Hi
Does this not do what you want ... ?
allpages <- dotplot(variety ~ yield | year * site, data=barley,
layout=c(2,2))
page2 <- allpages[1:2, 3:4]
print(page2)
Paul
On 24/04/18 17:51, Rolf Turner wrote:
On 24/04/18 15:17, Paul Murrell wrote:
Hi
I think the subs
ons, but not in others, and since I cannot
understand what it actually does, I cannot figure out why.
E.g. in my toy example "xxx[5:8]" seems to give me what I want, but in
the context of my real application a similar construction does not work.
Thanks for any insight.
cheers,
Ro
,
Thanks for your answer. I am wondering if in the previous versions,
let's say 2.1x, the data were in the selection order... Let me know if
there a R fonction taht I can code. Do you think I should use locator
function and match points on my own?
Best,
Samuel
--
Dr Paul Murrell
Departme
iling 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.
--
Dr Paul Murrell
Department of Statistics
The University o
= InsectSprays)
# How to remove the dashed horizonal line?
--
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x85392
p...@stat.auckland.ac.nz
http://www.stat.auckland.ac.nz/~paul/
__
lot_chinese.pdf", m2)
[[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-guid
parts of the help page,
I see that there is a 'graphics.reset' argument which you can
set to TRUE in such a case:
image.plot(D, col=rev(heat.colors(128)),bty="n", xlab="Lines",
ylab="Columns", cex.lab = 0.5,
zlim= range(D, na.rm=TRUE),
graphics.reset = TRUE, # <<
or
ggplot2 with grid graphics to plot multiple heatmaps.
https://stackoverflow.com/questions/15114347/to-display-two-heatmaps-in-same-pdf-side-by-side-in-r
--
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x85
nd provide commented, minimal, self-contained, reproducible code.
--
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x85392
p...@stat.auckland.ac.nz
http://www.stat.auckland.ac.nz/~paul/
_
__ 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.
--
Dr Paul Murrell
Department of Stati
___
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 co
sans")
text(1, 0.25, expression(CO[2]-FZSong), family = "fzsong")
text(1, 0.5, expression(CO[2]-Song), family = "song")
text(1, 0.75, expression(CO[2]-Serif), family = "serif")
dev.off()
__
R
t;LC_COLLATE=Chinese (Simplified)_China.936;LC_CTYPE=Chinese
(Simplified)_China.936;LC_MONETARY=Chinese
(Simplified)_China.936;LC_NUMERIC=C;LC_TIME=Chinese (Simplified)_China.936"
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://
answer can be extracted from a given body of data.
~ John Tukey
[[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/
;", ""))),
key = list(
space = "top",
columns = 3,
text = list(c("Blank", "Negative", "Positive"), col="black"),
rectangles = list(col=c("grey", "green", "red"))
)
)
re out that boxes in boxplot are called
"bwplot.box.polygon". If I am trying to make a gradient filling for
barplot of other plots, how would I define grobs?
Thanks!!
Ace
On Thursday, December 8, 2016 5:24 PM, Paul Murrell
wrote:
Hi
You could try ...
grid.export(..., strict=FAL
data.
Any other thoughts?
Thanks.
Ace
On Tuesday, December 6, 2016 7:43 PM, Paul Murrell
wrote:
Hi
'gridSVG' might be one way to get this. For example ...
library(lattice)
# Draw boxplot (with a package that sits on top of 'grid')
bwplot(voice.part ~ height, data=sin
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.
--
Dr Paul Murrell
Departmen
d
with bty="n", but the method for plotting a "VennDrawing" structure uses
the grid package and I'm lost there at the moment.
Thank you for your help again, grid.ls() etc is a very cool and
flexible approach
Jose
_ 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.
--
Dr Paul Murrell
Department o
ix <- LETTERS[n] print(x[[n]], newpage=FALSE,
prefix=prefix) downViewport(paste0(prefix,".panel.1.1.off.vp"))
upViewport(0) } #n-loop } }
d <- dim(volcano) xy <- data.frame( x = 1:d[1], y1 = volcano[,30], y2
= sqrt(volcano[,7]))
bottom <- levelplot(volcano, main = 'boom', y
t("xy_p.panel.1.1.off.vp")
# Draw proper left axis labels
grid.text(seq(100, 200, 20), x=unit(0, "npc") - unit(1, "lines"),
y=unit(seq(100, 200, 20), "native"), just="right",
gp=gpar(cex=.8))
upViewport(0)
Paul
On 26/10/16 10:5
info/r-help PLEASE do read the
posting guide http://www.R-project.org/posting-guide.html and provide
commented, minimal, self-contained, reproducible code.
--
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x85392
p...
.1), linetype=2)+
# This part is just to make it more nice
theme(panel.background = element_rect(fill = 'white'),
panel.grid.major = element_blank(),
panel.grid.minor = element_blank(),
plot.margin = unit(c(0.5, 1, 0.5, 0.5), "cm"),
axis.text.x=eleme
sting-guide.html
and provide commented, minimal, self-contained, reproducible code.
--
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x85392
p...@stat.auckland.ac.nz
http://www.stat.auckland.ac.nz/~paul/
___
the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
--
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x85392
p...@stat.auckland.ac.nz
http://www.
legend. Is there any easy way to retain these
blocks with panel.barchart?
--
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x85392
p...@stat.auckland.ac.nz
http://www.stat.auckland.ac.nz/~paul/
___
Well, it didn't look nice on my laptop. The asterisk was nearly invisible.
cheers,
Rolf
__
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 h
___
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.
--
Dr Paul Murr
ailman/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.
--
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x85392
p
its = "npc", name="vp2")
pushViewport(vp2)
#data with a different scale
xs<-seq(0.01,0.1,0.01)ys<-xs^2
#points(xs,ys,type='b',col='red',newpage=FALSE)
plot(xs,ys,type='b',col='red') #fills the whole screen instead of just the
intende
sting-guide.html and provide
commented, minimal, self-contained, reproducible code.
--
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x85392
p...@stat.auckland.ac.nz
http://www.stat.auckland.ac.nz/
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.
--
Dr Paul Murrell
Department of Statistics
The Unive
plot(main="D")
seekViewport("C")
stackedplot(main="C")
seekViewport("B")
stackedplot(main="B")
seekViewport("A")
stackedplot(main="A")
I tried with different names and found out that if I plot in reversed
alphabetical order everyt
What am I not seeing here that causes the different outputs?
Rich
__
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, minim
regory (Greg) L. Snow Ph.D.
538...@gmail.com
__
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, rep
guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
--
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x85392
p...@stat.auckland.ac.nz
http:/
Hi
On 05/12/14 18:17, Spencer Graves wrote:
On 5/11/2014 8:53 PM, Paul Murrell wrote:
Hi
There is a grid.roundrect(), in case you are working in that
alternative universe.
p.s. Is it feasible to mix grid with traditional graphics? Your Ch. 6
begins, "This chapter is useful for dr
encer Graves
__
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.
--
Dr Paul Mu
ject.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.
--
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag
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.
--
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Ze
-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.
--
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 9201
uot;tmp"
class(tmp)
[1] "recordedplot"
x11()
replayPlot(tmp)
Error: NULL value passed as symbol address
sessionInfo()
R version 3.0.1 Patched (2013-08-13 r63562)
Platform: x86_64-apple-darwin10.8.0 (64-bit)
locale:
[1] C
attached base packages:
[1] stats graphics grDevi
uetta
PhD Candidate, Columbia University
__
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, repro
gt; i=1000
> M1 <- Matrix(rnorm(i*i), ncol=i)
> system.time(print(Matrix::image(M1)))
user system elapsed
11.320 0.064 11.406
> M2 <- matrix(rnorm(i*i), ncol=i)
> system.time(image(as.matrix(M2)))
user system elapsed
0.837 0.004 0.844
--
Dr Paul Murrel
ks for you too.
Paul
On 08/06/13 04:02, Marc Girondot wrote:
I like very much the solution proposed by Paul Murrell to mask the ocean
(in fact, all that is not the country displayed) in a plot. It works
pretty well for Australia. However, when I try to apply the same code
for France, it fails. I se
box
yrange <- range(outline$y, na.rm=TRUE)
xbox <- xrange + c(-2, 2)
ybox <- yrange + c(-2, 2)
# create the grid path in the current device
polypath(c(outline$x, NA, c(xbox, rev(xbox))),
c(outline$y, NA, rep(ybox, each=2)),
col="light blue", rule="evenodd&qu
textGrob("2", vp="vplay::vp.2.2")))
grid.newpage()
grid.draw(x)
... is that the sort of thing you mean?
Paul
Joh
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-pro
ator and are willing to
describe how you create a pdf or ps file? If so you should post a
dataset (in R code using dput) and code. Many of us do not have such a
resource but I cannot imagine understanding your complaint unless you do
post further detail.
--
Dr Paul Murrell
Department of Statistics
_
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.
--
Dr Paul Murrell
Department
roject.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.
--
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private
-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.
--
Dr Paul Murrell
Department of Statistics
The University of
", ylab = "")
rasterImage(img, 0, 0, dim(img)[2], dim(img)[1])
#dev.copy(tiff, "outputfile2.tiff")
dev.off()
##STOP##
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide h
LEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
--
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3
on that this can get fiddly ...
Paul
On 23/10/12 09:07, Paul Murrell wrote:
Hi
Here are a couple of suggestions:
(i) To start a new page, use plot.new() FIRST, followed by
grid.newpage() (if you are trying to mix 'grid' and base graphics)
(ii) Watch out for 'grid' and base
ailman/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
https://stat.ethz.ch/mailman/listinfo/r-help
P
/www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
--
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x85392
p...@stat.auckland.ac.nz
http://www.stat.auckland.ac.nz/~paul/
__
leted]]
__ 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.
--
Dr Paul Murrell
Depar
.))
grid.rect(gp=gpar(col=NA, fill="gray90")) # background
par(plt=gridPLT()) ## plot par(new=TRUE) # always do this before each
new 'graphics' plot plot(runif(5), runif(5), type="b", log="y",
xlab="", ylab="", frame.plot=FALSE, xaxt="n&q
),box.width=1,
scales=list(alternating=3,tick.number=5,relation="same",y=list(at=1:length(4:21),labels=agegrs)),
auto.key=list(text=c("No-edu","Primary","Secondary","Tertiary"),reverse.row=TRUE,
points=FALSE,rectangles=TRUE,space=&quo
## plot
par(new=TRUE) # always do this before each new 'graphics' plot
plot(1:5, if(i==1 && j==2) c(1, 1, 2, 3, 1) else 1:5,
log="y", xlab="", ylab="", frame.plot=FALSE, xaxt="n", yaxt="n"
1 - 100 of 262 matches
Mail list logo