Re: [R] Problems with svg() exporting graphics with gradients

2025-04-03 Thread Paul Murrell
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

Re: [R] Is there some place where I can check a changelog / NEWS for the grid package?

2024-08-18 Thread Paul Murrell
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

Re: [R] Double buffering plots on Windows

2024-03-25 Thread Paul Murrell
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

Re: [R] Double buffering plots on Windows

2024-03-24 Thread Paul Murrell
<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

Re: [R] ggarrange & legend

2024-02-06 Thread Paul Murrell
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

Re: [R] Problems when trying to visualize clusters

2023-11-27 Thread Paul Murrell
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

Re: [R] Plot to a device and examine the plot?

2023-10-15 Thread Paul Murrell
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

Re: [R] annotate

2023-10-05 Thread Paul Murrell
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..

Re: [R] How to draw plot marks without label?

2023-09-05 Thread Paul Murrell
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

Re: [R] single character in R, and how to manipulate it

2023-03-30 Thread Paul Murrell
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:

Re: [R] insert hyperlink into svg graphic

2023-03-08 Thread Paul Murrell
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

Re: [R] insert hyperlink into svg graphic

2023-03-07 Thread Paul Murrell
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:/

Re: [R] Adding page numbers to existing PDFs

2022-10-27 Thread Paul Murrell
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

Re: [R] Putting colours in ggplot facets

2021-10-26 Thread Paul Murrell
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 >

Re: [R] Putting colours in ggplot facets

2021-10-26 Thread Paul Murrell
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

Re: [R] How to rotate only one panel by 90 degrees in R plot?

2021-10-12 Thread Paul Murrell
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

Re: [R] Trying to Learn Details of Grid Graphics, Help Page Errors

2021-09-22 Thread Paul Murrell
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. --

Re: [R] Wayland backend for R

2021-06-22 Thread Paul Murrell
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

Re: [R] graphics useRaster check_irregular definition for date or posix

2021-04-15 Thread Paul Murrell
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

Re: [R] graphics useRaster check_irregular definition for date or posix

2021-04-14 Thread Paul Murrell
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()

Re: [R] graphics useRaster check_irregular definition for date or posix

2021-04-13 Thread Paul Murrell
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

Re: [R] Monospaced font not shown correctly (Xubuntu 20.04)

2021-01-19 Thread 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

Re: [R] Plot math symbol with string and number

2020-08-17 Thread Paul Murrell
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

Re: [R] Load svg, eps or png into graphics device?

2020-06-21 Thread Paul Murrell
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

Re: [R] [FORGED] Re: text annotation on Manhattn plot in qqman

2020-05-20 Thread Paul Murrell
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

Re: [R] [FORGED] what is the expected behavior of layout.show(n)

2020-04-29 Thread Paul Murrell
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

Re: [R] [FORGED] Re: Quantile Density Contours

2019-03-27 Thread Paul Murrell
__ 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

Re: [R] [FORGED] R cairo_pdf function does not respect plotting boundaries

2019-03-04 Thread Paul Murrell
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

Re: [R] Interplay rnaturalearth, vwline

2018-11-13 Thread Paul Murrell
) 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

Re: [R] [FORGED] Re: Line with linearly changing thickness – installation issues

2018-11-11 Thread Paul Murrell
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

Re: [R] [FORGED] grid.grab(): strange behavior of "wrap" argument when working with lattice output

2018-10-30 Thread Paul Murrell
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 "

Re: [R] [FORGED] Re: Change the position of label when using R package eulerr

2018-09-16 Thread Paul Murrell
/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.'

Re: [R] [FORGED] Re: getting 21 very different colours

2018-09-11 Thread Paul Murrell
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

Re: [R] [FORGED] Re: Display time of PDF plots

2018-09-03 Thread Paul Murrell
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

Re: [R] [FORGED] Adding % sign to ticks in persp()

2018-08-05 Thread Paul Murrell
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

Re: [R] HLS and HSV in package colorspace [not whitepoint related]

2018-06-24 Thread Paul Murrell
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

Re: [R] [FORGED] How to alpha entire plot?

2018-06-04 Thread Paul Murrell
___ 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

Re: [R] [FORGED] Re: drc, ggplot2, and gridExtra

2018-05-22 Thread Paul Murrell
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

Re: [R] [FORGED] Re: draw borders of bars inside of the rectangles in a barplot

2018-05-22 Thread Paul Murrell
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),

Re: [R] [FORGED] Extracting specified pages from a lattice ("trellis") object.

2018-04-26 Thread Paul Murrell
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

Re: [R] [FORGED] Extracting specified pages from a lattice ("trellis") object.

2018-04-23 Thread Paul Murrell
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

Re: [R] Identify does sort the locations

2018-02-15 Thread Paul Murrell
, 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

Re: [R] Identify does sort the locations

2018-02-15 Thread Paul Murrell
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

Re: [R] [FORGED] Suppress horizontal mean line in beanplot()

2018-02-13 Thread Paul Murrell
= 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/ __

Re: [R] [FORGED] can't print ggplot with Chinese characters to pdf files

2017-10-12 Thread Paul Murrell
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

Re: [R] [FORGED] Re: axis() after image.plot() does not work except if points() is inserted between

2017-07-27 Thread Paul Murrell
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, # <<

Re: [R] [FORGED] Re: par(mfrow) for heatmap plots

2017-07-23 Thread Paul Murrell
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

Re: [R] [FORGED] How to create my own grDevices using java

2017-06-01 Thread Paul Murrell
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/ _

Re: [R] [FORGED] creating a color gradient in geom_ribbon

2017-05-11 Thread Paul Murrell
__ 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

Re: [R] [FORGED] Re: Example of the use of the "crt" graphical parameter?

2017-05-01 Thread Paul Murrell
___ 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

Re: [R] [FORGED] difference metric info of same font on different device

2017-04-09 Thread Paul Murrell
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

Re: [R] [FORGED] Can fallback font be specified?

2017-03-26 Thread Paul Murrell
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://

Re: [R] [FORGED] display UTF8 characters in pdf

2017-03-12 Thread Paul Murrell
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/

Re: [R] [FORGED] Re: single strip for the same group in dotplot lattice

2017-02-23 Thread Paul Murrell
;", ""))), key = list( space = "top", columns = 3, text = list(c("Blank", "Negative", "Positive"), col="black"), rectangles = list(col=c("grey", "green", "red")) ) )

Re: [R] [FORGED] help with gradient boxplot

2016-12-11 Thread Paul Murrell
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

Re: [R] [FORGED] help with gradient boxplot

2016-12-08 Thread Paul Murrell
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

Re: [R] [FORGED] help with gradient boxplot

2016-12-06 Thread Paul Murrell
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

Re: [R] [FORGED] Re: [FORGED] How to remove box in Venn plots (Vennerable package, uses grid) - similar to bty="n" in standard plots

2016-11-14 Thread Paul Murrell
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

Re: [R] [FORGED] How to remove box in Venn plots (Vennerable package, uses grid) - similar to bty="n" in standard plots

2016-11-13 Thread Paul Murrell
_ 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

Re: [R] [FORGED] Re: [FORGED] lattice: control panel extent on device

2016-10-26 Thread Paul Murrell
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

Re: [R] [FORGED] Re: lattice: control panel extent on device

2016-10-25 Thread Paul Murrell
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

Re: [R] [FORGED] Re: lattice: control panel extent on device

2016-10-25 Thread Paul Murrell
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...

Re: [R] Limit the y-axis line with ggplot2 (not the axis itself, but the line used at the left of the graph) [SOLVED]

2016-10-25 Thread Paul Murrell
.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

Re: [R] [FORGED] Rotating points, preferably in grid

2016-08-24 Thread Paul Murrell
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/ ___

Re: [R] [FORGED] Plotting in LaTeX with ggplot2 in R and using tikzdevice

2016-08-03 Thread Paul Murrell
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.

Re: [R] [FORGED] Lattice barchart legend with panel.barchart

2016-07-27 Thread Paul Murrell
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/ ___

Re: [R] [FORGED] Re: Can I increase the size of an asterisk in plotmath()?

2016-06-30 Thread Paul Murrell
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

Re: [R] Fit a smooth closed shape through 4 points

2016-03-21 Thread Paul Murrell
___ 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

Re: [R] [FORGED] How to remove the grid around the plot(ca(...)) function?

2015-10-08 Thread Paul Murrell
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

Re: [R] [FORGED] Re: plotting over a raster image with control over location and orientation

2015-08-24 Thread Paul Murrell
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

Re: [R] help for lay person assisting R user with disability

2015-06-18 Thread Paul Murrell
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/

Re: [R] Resizing a graph with a legend in the outer margin - wish for functionality like mtext()

2015-03-25 Thread Paul Murrell
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

Re: [R] Using grid.layout inside grid.layout with grid package: naming of the viewports affects plotting

2014-11-27 Thread Paul Murrell
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

Re: [R] Ternary Plots Do Not Display Ellipses in PDF

2014-10-20 Thread Paul Murrell
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

Re: [R] par("plt") behaving inconsistely? bug?

2014-10-08 Thread Paul Murrell
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

Re: [R] Making my own graphics device

2014-08-17 Thread Paul Murrell
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:/

Re: [R] clipart - box with rounded corners?

2014-05-12 Thread Paul Murrell
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

Re: [R] clipart - box with rounded corners?

2014-05-11 Thread Paul Murrell
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

Re: [R] Extracting Width and Length of Each Shape in EPS File

2014-04-16 Thread Paul Murrell
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

Re: [R] Finding absolute viewport location in grid / lattice

2013-11-07 Thread Paul Murrell
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

Re: [R] Control over character height, width, skew etc.?

2013-11-03 Thread Paul Murrell
-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

Re: [R] failure to replayPlot() a recordedplot object saved in a previous session?

2013-09-24 Thread Paul Murrell
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

Re: [R] grid: Grid graphics flickering

2013-08-18 Thread Paul Murrell
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

Re: [R] image versus levelplot

2013-08-18 Thread Paul Murrell
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

Re: [R] Masking oceans using polypath

2013-08-11 Thread Paul Murrell
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

Re: [R] Masking oceans using polypath

2013-07-16 Thread Paul Murrell
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

Re: [R] Construct plot combination using grid without plotting and retrieving an object?

2013-05-27 Thread Paul Murrell
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

Re: [R] problems with text in plots when using illustrator

2013-04-09 Thread Paul Murrell
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

Re: [R] Clip a contour with shapefile while using contourplot

2013-03-24 Thread Paul Murrell
_ 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

Re: [R] 2 questions about svg output

2013-03-13 Thread Paul Murrell
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

Re: [R] interactive visualizations - anyone use SVGAnnotation?

2013-03-04 Thread Paul Murrell
-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

Re: [R] Raster images and saving with original pixel dimensions in tiff, jpeg, or png perferablly.

2013-03-04 Thread Paul Murrell
", 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

Re: [R] Equivalent of box() in grid graphics

2013-01-27 Thread Paul Murrell
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

Re: [R] plot.new() and grid functions in multipage pdfs

2012-10-22 Thread Paul Murrell
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

Re: [R] plot.new() and grid functions in multipage pdfs

2012-10-22 Thread Paul Murrell
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

Re: [R] grid(Base): How to avoid "Figure region too small and/or viewport too large" by specifying 'relative' units?

2012-10-22 Thread Paul Murrell
/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/ __

Re: [R] svyplot and svysmooth with hexbin

2012-10-18 Thread Paul Murrell
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

Re: [R] Background color in a grid plot seems to interfere with plot()

2012-09-25 Thread Paul Murrell
.)) 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

Re: [R] Adding textbox to multiple panels in lattice

2012-09-24 Thread Paul Murrell
),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

Re: [R] Background color in a grid plot seems to interfere with plot()

2012-09-24 Thread Paul Murrell
## 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   2   3   >