Re: [R] add error bars to rarecurve from package vegan

2019-10-21 Thread Duncan Mackay
bars Suggest contacting the maintainer Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2350 -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Luigi Marongiu Sent: Tuesday, 22 October 2019 01:44

Re: [R] hist{graphics}

2019-07-14 Thread Duncan Mackay
Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2350 -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of peter dalgaard Sent: Sunday, 14 July 2019 02:15 To: Duncan Murdoch Cc: r-help@r-project.org; Steven Subject: Re: [R

[R] placement of plot in rgl

2019-07-01 Thread Duncan Mackay
p2, size = 10, col = "blue") points3d(p3, size = 10, col = "green") axes3d(c('x', 'y', 'z')) title3d(xlab = "x", ylab = "y", zlab = "z", line = 1.7) aspect3d(1,1,1) highlevel() Regards Duncan Duncan Mackay Department of Agron

Re: [R] Unable to Understand Results of pglm function

2019-04-23 Thread Duncan Mackay
Draft-5.088e+00Inf 0 1 TOTALCOST-1.708e-04Inf 0 1 BUNKER -6.712e-03Inf 0 1 CHARTERVALUE 2.524e-04Inf 0 1 dty2018 2.215e+00Inf 0 1 I have no

Re: [R] Define pch and color based on two different columns

2019-04-10 Thread Duncan Mackay
Hi Here is the caveat If you want to repeat it with loess? or panel loess something else that is not groups aware (I have not checked to see if it has been up dated) have a look at https://stat.ethz.ch/pipermail/r-help/2010-August/250050.html Regards Duncan Mackay Duncan Mackay Department

Re: [R] add points to lattice cloud plot (3D scatter)

2019-04-04 Thread Duncan Mackay
Sorry my fingers slipped and hit the send button. One further thing is that I do not know why distribute.type = TRUE for cloud did not work Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2350 -Original Message- From: Duncan Mackay

Re: [R] add points to lattice cloud plot (3D scatter)

2019-04-04 Thread Duncan Mackay
Hi all I know it is a bit late but I have been on other things. This is a custom solution as it requires manual tweeking for further use in getting the letter positioning As cloud is fairly rigid I made a duplicate dataset and reduced the x and y values by 0.1 as a trial. Will need tweeking

Re: [R] Printing standard notation and scientific notation in the same column of a dataframe

2018-09-27 Thread Duncan Mackay
Hi If you do not require the zeros to the right in the scientific notation x [1] 5.2e-01 1.7e-01 3.0e-02 1.0e-20 zapsmall(x) [1] 0.52 0.17 0.03 0.00 Then use format, formatC or sprintf for character conversions Regards Duncan Duncan Mackay Department of Agronomy and Soil Science

Re: [R] Perform GEE regression in R with multiple dependent variables

2018-08-06 Thread Duncan Mackay
ountry_ID))) summary(fitord) Στις Δευ, 6 Αυγ 2018 στις 7:29 π.μ., ο/η Duncan Mackay έγραψε: Hi Please read the geepack manual carefully. GEE ordinal regression is not simple. You need to format your data and do not use sample as a storage name. It is the name of a function dta is st

Re: [R] Perform GEE regression in R with multiple dependent variables

2018-08-05 Thread Duncan Mackay
ave to see which is best for you Many do not offer a method for ordinal or multinomial GEE. One further question to ask population specific or subject specific ie to GEE or not to GEE Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England A

Re: [R] Suggestions for scatter plot of many data

2018-07-19 Thread Duncan Mackay
ot(x,y, ...) panel.text(-1, 2, paste("Group", 1:9)[which.packet()]) } ) I have put over 60 panels on an A4 page. You may have to put an if statement for the group names if they overlap data. Space is a premium - you can reduce the right margin similar to th

Re: [R] ASExtras library

2018-07-10 Thread Duncan Mackay
had a different name than ASExtras. Is it the Splus distributed package name? There is an asremlPlus package that is still valid Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2350 -Original Message- From: R-help [mailto:r-h

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

2018-04-27 Thread Duncan Mackay
- c(2,2) apm Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2350 -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Paul Murrell Sent: Friday, 27 April 2018 11:28 To: Rolf Turner Cc: r-hel

Re: [R] Can't Get Lattice Histogram Minor Tick Marks to Work

2018-04-24 Thread Duncan Mackay
Hi You may need to make a custom function for yscale.components; I think there is an example in the help guides Also have a look at https://stat.ethz.ch/pipermail/r-help/2007-June/134524.html Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England

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

2018-04-24 Thread Duncan Mackay
but principle is the same. you can use packet.number or which.packet if needed to make it simpler use par.settings to do colours lines etc as well as spacing. Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2350 -Original Messa

Re: [R] problem with the behaviour of dashed lines in R plots

2017-12-04 Thread Duncan Mackay
type="p", col="black", cex=2, pch=17) box(lwd=3) Saves typing by using options Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2350 -Original Message- From: R-help [mailto:r-help-

Re: [R] Lattice stacked barplot vertical bars

2017-09-22 Thread Duncan Mackay
Hi Luigi will this do barchart( D ~ A|E, DF, groups = C, stack = TRUE, horizontal = F, main = "Comparison of test results", xlab = "Count", col = c("yellow", "orange"), par.settings = list( strip.background = list(col="light grey"),

Re: [R] show 0 at y axis in xyplot lattice

2017-09-11 Thread Duncan Mackay
scales = list(x = list(at = sdate, labels = format(sdate, "%b-%y"))), xlab="Date", panel = function(x, y, ...) { panel.grid(h = -1, v = 0, lwd=1, lty=3, col="grey") panel.abline(v=dat$dDate, lwd=1, lty=3, col="grey") panel.x

Re: [R] plotting gamm results in lattice

2017-06-12 Thread Duncan Mackay
ddat$Q95, lower = newdat$lower, upper = newdat$upper, subscripts = TRUE, panel = function(x,y, Q2, upper, lower, subscripts, ...){ panel.xyplot(x,y, type="smooth") panel.xyplot(Q2, upper, lty=2, col="red")

Re: [R] display double dot over character in plotmath?

2017-05-15 Thread Duncan Mackay
+1000 Duncan Mackay <dulca...@bigpond.com> wrote: > Hi > > I just had to do something similar in windows with \"{u}. Try Unicode symbol > - see ?plotmath > > ggplot(data, aes(x=X)) + geom_line(aes(y = Z), size=0.43) + > xlab(expression(atop(top,bold(Age~"

Re: [R] display double dot over character in plotmath?

2017-05-14 Thread Duncan Mackay
Hi I just had to do something similar in windows with \"{u}. Try Unicode symbol - see ?plotmath ggplot(data, aes(x=X)) + geom_line(aes(y = Z), size=0.43) + xlab(expression(atop(top,bold(Age~"\u00e4" Regards Duncan Duncan Mackay Department of Agronomy and Soil Science Un

Re: [R] Lattice xyplot

2017-05-01 Thread Duncan Mackay
make ID a factor dat3 <- dat1 xyplot(y ~ time, data=dat3, groups=id, aspect = "fill", type = c("p", "l"), xlab = "Time", ylab = "Y") # ordered + ID a factor dat4 <- dat3 dat4<-dat[order(dat4$id, dat4$time),] xyplot(y ~ time, data=dat4, grou

[R] Strip height in latticeExtra:::useOuterStrips

2017-04-17 Thread Duncan Mackay
ot;rep"))), .Names = c("dim", "dimnames")), row.names = c(NA, -32L), class = "data.frame") str(df2) library(lattice) library(laticeExtra) # This is as per normal xyplot(x~d|paste(a,b)*c, data = df2) # Increase strip height to use atop later on for 2 lines of text/pan

Re: [R] customize labels useOuterStrips lattice

2017-03-30 Thread Duncan Mackay
quoise", "grey"))), scales = list(alternating = FALSE, x=list(draw=FALSE)), key = list( space = "top", columns = 3, text = list(c("Blank", "Negative", "Positive"), col="black"), rectangles

Re: [R] customize labels useOuterStrips lattice

2017-03-30 Thread Duncan Mackay
Hi Luigi see ?strip.custom too late to do any more Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mac...@northnet.com.au -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf

Re: [R] add median value and standard deviation bar to lattice plot

2017-03-18 Thread Duncan Mackay
lwd = 2, angle = 90, code = 3) } panel.xyplot(x, y, ...) } ) ) ) panel.superpose avoids the needs for subscripts Used dotplot as I could not get into panel.stripplot easily made dot.lie white

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

2017-02-22 Thread Duncan Mackay
= T ) Adding: Depending on preferences for cluster (run) and target the new columns could be changed to suit. With "duplication" pch and col, rather than arguments themselves can be adjusted to suit in par.settings which makes doing the key easier Regards Duncan -Original Me

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

2017-02-22 Thread Duncan Mackay
Hi Liugi Here are some ideas quickly 4 panels diagonals are blank mdata = my.data mdata$ct <- paste(target, "Run", rep(1:2, each = 6)) mdata$typeT <- paste(mdata$target,mdata$type) dotplot( value ~ type|ct, mdata2, groups = typeT, par.settings = list(strip.background =

Re: [R] cluster data in lattice dotplot and show stdev

2017-02-16 Thread Duncan Mackay
it = "inches", angle = 90, code = 3) } ) Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mac...@northnet.com.au -Original Message- From

Re: [R] Sweave: Incorporating warnings into a Sweave output chunck

2017-01-04 Thread Duncan Mackay
, 5 January 2017 07:06 To: Duncan Mackay Cc: R Subject: Re: [R] Sweave: Incorporating warnings into a Sweave output chunck Dear Duncan, I'd recommend to switch from Sweave to knitr. Knitr has more options for handling warnings and errors than Sweave. Best regards, ir. Thierry

[R] Sweave: Incorporating warnings into a Sweave output chunck

2017-01-03 Thread Duncan Mackay
elow \begin{Sinput} clust.hw <- svydesign(ids = ~Patient, data = hw.dat)Warning in svydesign.default(ids = ~Patient, data = hwd) : No weights or probabilities supplied, assuming equal probability \end{Sinput} I think that there also needs to be an argument about clos

Re: [R] about data format in R

2016-12-30 Thread Duncan Mackay
Hi Is this the output from Excel? If so format it in Excel for a date format not a date-time format . Depending how the dates were inputted into Excel and the Excel setup a date may not be a date format. There are no rules with microsoft formatting so beware! Regards Duncan Duncan Mackay

Re: [R] \n and italic() in legend()

2016-12-29 Thread Duncan Mackay
t;, 0.25,0.25) popViewport(0) Regards Duncan -Original Message- From: Marc Girondot [mailto:marc_...@yahoo.fr] Sent: Friday, 30 December 2016 08:46 To: Duncan Mackay; w...@caa.columbia.edu; R-help Mailing List Subject: Re: [R] \n and italic() in legend() Hi, Thanks a lot to Duncan Mackay

Re: [R] \n and italic() in legend()

2016-12-29 Thread Duncan Mackay
Hi Marc Try atop plot(1, 1) v1 <- expression(atop(italic("p")*"-value","based on "*italic("t")*"-test")) legend("topright", legend=v1, y.intersp = 3, bty="n") Regards Duncan Duncan Mackay Department of Agronomy and

Re: [R] How to overlay lines and rectangles in lattice plot key

2016-12-28 Thread Duncan Mackay
actor = 5, legend = list(right = list(fun = XY04.fmG)) ) Duncan -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Duncan Mackay Sent: Thursday, 29 December 2016 18:21 To: R Subject: Re: [R] How to overlay lines and rectangles in lattice plot key Hi

Re: [R] How to overlay lines and rectangles in lattice plot key

2016-12-28 Thread Duncan Mackay
nt instead of 2 or 3. The OP needs to change the format and fix the heights of the rectangles etc. I also fixed the colour vectors had j instead of k Duncan -Original Message- From: Duncan Mackay [mailto:dulca...@bigpond.com] Sent: Thursday, 29 December 2016 16:17 To: R Subject: RE: [R]

Re: [R] How to overlay lines and rectangles in lattice plot key

2016-12-28 Thread Duncan Mackay
al.Length + Sepal.Width ~ Petal.Length + Petal.Width, iris, type = c("p", "r"), jitter.x = TRUE, jitter.y = TRUE, factor = 5, legend = list(right = list(fun = XY04.fmG)) ) Have a look at https://stat.ethz.ch/pipermail/r-help/2005-April/069459.html and the follo

Re: [R] data manipulation

2016-12-19 Thread Duncan Mackay
"data.frame", row.names = c(NA, -396L )) Regards Duncan -Original Message- From: David Winsemius [mailto:dwinsem...@comcast.net] Sent: Monday, 19 December 2016 13:47 To: Duncan Mackay Cc: R Subject: Re: [R] data manipulation > On Dec 18, 2016, at 5:39 PM, Duncan Mackay <

Re: [R] data manipulation

2016-12-18 Thread Duncan Mackay
Hi David Thanks for the info. As a test I am attaching it anyway Regards Duncan -Original Message- From: David Winsemius [mailto:dwinsem...@comcast.net] Sent: Monday, 19 December 2016 05:36 To: Duncan Mackay Cc: R Subject: Re: [R] data manipulation > On Dec 17, 2016, at 7:57

Re: [R] data manipulation

2016-12-17 Thread Duncan Mackay
Hi Coming late to the discussion - I deleted the original message I found that I have a cbe.dat that I downloaded some years ago from cowpertwaite's site . And have attached it If it does not get through will do a dput as the file is only 7K Regards Duncan Duncan Mackay Department

Re: [R] How to create a list of trellis objects for grid.arrange()

2016-10-29 Thread Duncan Mackay
of is using viewports ? grid::viewports If it is base graphics then ? layout may fix it Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mac...@northnet.com.au -Original Message- From: R-help [mailto:r-help

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

2016-10-25 Thread Duncan Mackay
Hi Ben A bit kludgy but it works. Further refinement by eye print(vol_p, position = c(0,0,1,0.5), more = TRUE) print(xy_p, position = c(0.14,0.5,0.86,1), more = FALSE) I do not know if viewports will be any better Regards Duncan Duncan Mackay Department of Agronomy and Soil Science

Re: [R] Lattice xyplot(): adding a legend

2016-10-19 Thread Duncan Mackay
s things change overtime. There are some words on how information is passed to the key in ?xyplot You either have to set trellis.par.set() or use the par.settings arguments For older versions things may be slightly different. If in a hurry I try the easiest but if that fails on the first g

Re: [R] Lattice xyplot(): adding a legend

2016-10-19 Thread Duncan Mackay
her have to set trellis.par.set() or use the par.settings arguments For older versions things may be slightly different. If in a hurry I try the easiest but if that fails on the first go I just use key = list(text = ... etc Regards Duncan Duncan Mackay Department of Agronomy and Soil Science Unive

Re: [R] suppress labels in lattice barchart

2016-10-16 Thread Duncan Mackay
Hi Try barchart(name ~ age, data = boy.age, scales = list(y = list(alternating = FALSE, at = 1:4, labels = rep("",4 see ?lattice::xyplot for details Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email:

Re: [R] can we visualize water flows with 3d in R?

2016-10-14 Thread Duncan Mackay
rtly determined by your future requirements of which I am not qualified. Regards Duncan From: Marna Wagley [mailto:marna.wag...@gmail.com] Sent: Friday, 14 October 2016 03:13 To: Duncan Mackay Subject: Re: [R] can we visualize water flows with 3d in R? Hi Duncan, Thank you v

Re: [R] can we visualize water flows with 3d in R?

2016-10-13 Thread Duncan Mackay
tude effect Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mac...@northnet.com.au -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Marna Wagley Sent: Wednesday, 12 October 2

Re: [R] Output formatting in PDF

2016-10-11 Thread Duncan Mackay
lications/jse/v18n3/zhou.pdf for examples also have a look at the grid.clip function Regards Duncan Mackay Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mac...@northnet.com.au -Original Message- From: R-help [mailto:r-he

Re: [R] Adding loess lines subsetting to each panel in lattice plot

2016-08-14 Thread Duncan Mackay
ol = c("red","blue","green"))), panel = function(x, y, ..., groups) { panel.superpose(x, y, ..., groups, panel = panel.points) panel.superpose(x, y, ..., groups, panel = panel.loess) panel.xyplot(x,y, ty

Re: [R] how to plot annual values directly

2016-08-04 Thread Duncan Mackay
el = panel.superpose, panel.groups = function(x, y, type, col,group.number,avg, ...) { # plot daily values panel.xyplot(x, y, col = "grey80", type = "h") # delete if necessary # plot average panel.xyplo

Re: [R] font size in graphs...can R read Windows settings?

2016-07-29 Thread Duncan Mackay
] Sent: Friday, 29 July 2016 11:49 To: Duncan Mackay Cc: R Subject: Re: [R] font size in graphs...can R read Windows settings? The trouble is getting the figs to look right for different users who happen to have different display settings. Nearly all my users will be on MS Windows

Re: [R] font size in graphs...can R read Windows settings?

2016-07-28 Thread Duncan Mackay
2016 09:22 To: Duncan Mackay Cc: R Subject: Re: [R] font size in graphs...can R read Windows settings? Thanks, Duncan. This is close to what I was looking for. But I'm not using lattice. And the fontsize$text and fontsize$points are independent of display settings in Windows (screen resolution

Re: [R] font size in graphs...can R read Windows settings?

2016-07-27 Thread Duncan Mackay
ot;), border = c("red","blue"))), type = "b") Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mac...@northnet.com.au -Original Message- From: R-help [mailto:r-help-boun...@r-projec

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

2016-07-27 Thread Duncan Mackay
quot;red","blue"), border = c("red","blue"))), stack=TRUE, layout=c(4,1), auto.key=list(title="Survived", text=levels(Titan$Survived), rectangles=TRUE, points=FALSE, colum

Re: [R] pairs: adjusting margins and labeling axes

2016-07-19 Thread Duncan Mackay
10 / nchar(txt) grid.text(txt, 0.5, 0.5, gp = gpar(cex = cex.cor)) } splom(iris[1:4], groups = iris$Species, pch = 16, lower.panel = function(...) { panel.xyplot(...) panel.loess(..., col = 1, lwd = 3) }, upper.panel = panel.corval2) Regards Duncan Dunca

Re: [R] > Understanding strip.default & strip.custom

2016-06-29 Thread Duncan Mackay
> You seem to be making this way more difficult than you should. Though I didn't get any closer to an understanding of which.panel, the question I asked was simply answered by panel.custom(factor.levels = ) Thanks to Dunca

Re: [R] > Understanding strip.default & strip.custom

2016-06-28 Thread Duncan Mackay
d = list(col = "transparent") ), par.strip.text = list(cex = 0.65) ) ) If you want to change the order of the factors assign the factor levels to a vector and order accordingly Regards Duncan Duncan Mackay Department of Agronomy and S

Re: [R] graphic device Windows tickmarks

2016-05-31 Thread Duncan Mackay
),tick=TRUE) > axis(1, at = thickticks, labels=FALSE, las = 1,lwd.ticks=2) > dev.off() All the above work for me on Win 7 32 platform i386-w64-mingw32 arch i386 os mingw32 system

Re: [R] Scale y-labels based on a value with 'lattice'

2016-05-26 Thread Duncan Mackay
ot;]) without further work cex will not work as it is in par settings Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mac...@northnet.com.au -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Beh

Re: [R] plot numeric vs character

2016-03-18 Thread Duncan Mackay
])), xlab = "") Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mac...@northnet.com.au -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Ivan Calandra Sent: Thursday, 17

Re: [R] specify size of box around legend

2016-03-12 Thread Duncan Mackay
for one way with grid package, other ways may be using lattice and lattice::draw.key I' m a bit rusty on the actual workings Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mac...@northnet.com.au -Original Message

[R] FW: dotplot

2016-02-26 Thread Duncan Mackay
Forgot to send to list -Original Message- From: Duncan Mackay [mailto:dulca...@bigpond.com] Sent: Sunday, 17 May 2015 10:49 To: R Subject: RE: [R] dotplot if this is using lattice panel.dotplot gives the clues The vertical lines are inserted by panel abline. You can make your own

Re: [R] Condition layer across panels in lattice

2016-02-15 Thread Duncan Mackay
type = "b", lty = 2, panel = mypanel )) Regards Duncan -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Duncan Mackay Sent: Tuesday, 16 February 2016 15:16 To: R Subject: Re: [R] Condition layer across panel

Re: [R] Condition layer across panels in lattice

2016-02-15 Thread Duncan Mackay
Sorry forgot to reply to list. In addition (untested) modifying demo(lattice::intervals) to suit may help Duncan -Original Message- From: Duncan Mackay [mailto:dulca...@bigpond.com] Sent: Tuesday, 16 February 2016 12:12 To: 'Jeff Stevens' Subject: RE: [R] Condition layer across panels

Re: [R] tikzDevice and Sweave

2016-01-17 Thread Duncan Mackay
ion{Example of tikz graph} \label{tikzExampleFig} \end{center} \end{figure} \end{document} If this is an example for a larger document then have a look at the latex hyperref package Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Emai

Re: [R] Ordinal regression with some categories combined for some data

2016-01-16 Thread Duncan Mackay
Another package to do ordinal regression is VGAM Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mac...@northnet.com.au -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Bob

Re: [R] rjags loading error

2016-01-16 Thread Duncan Mackay
Hi What version of JAGS are you using JAGS 4.0.0 is current library(rjags) Loading required package: coda Linked to JAGS 4.0.0 Loaded modules: basemod,bugs Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mac

Re: [R] Panel plots for means of cyclical observations

2016-01-16 Thread Duncan Mackay
} ) ## xyplot You may want to look into the zoo package as it has several date grouping functions. untested z.tom <- aggregate(rainfall ~ year +month, z, mean, na.rm = T) xyplot(rainfall ~ month, z.tom, groups = year, scales = ... , panel = panel.superpose

Re: [R] introduce axis break lattice plot multipanel

2015-12-20 Thread Duncan Mackay
Duncan From: Luigi Marongiu [mailto:marongiu.lu...@gmail.com] Sent: Sunday, 20 December 2015 20:35 To: Duncan Mackay Subject: RE: [R] introduce axis break lattice plot multipanel thank you duncan, but in that case the scale of the two panel would be different. i think ill keep

Re: [R] introduce axis break lattice plot multipanel

2015-12-19 Thread Duncan Mackay
Hi Luigi I suppose a cheats way out would be to put scales = list(alternating = FALSE, x = list(relation = "free") ), Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mac...@north

Re: [R] filled circle with a black line on the rim in pch function

2015-12-01 Thread Duncan Mackay
)), auto.key = T, layout=c(4,1)) If you use auto.key things get a bit tricky and need values from trellis.par.set() ie par.settings within xyplot Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mac...@

Re: [R] [lattice::xyplot] Using (panel:.)abline with panel.superpose?

2015-10-07 Thread Duncan Mackay
Forgot to send to list -Original Message- From: Duncan Mackay [mailto:dulca...@bigpond.com] Sent: Thursday, 8 October 2015 08:44 To: 'Szumiloski, John' Subject: RE: [R] [lattice::xyplot] Using (panel:.)abline with panel.superpose? Hi John I only got grid lines on your # code 2

Re: [R] lattice plot: points and lines for different variables in same plotlattice plot

2015-10-04 Thread Duncan Mackay
n the panel function on their own line Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mac...@northnet.com.au -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Naresh Gurbu

Re: [R] Count number of rain more than zero in matrix form

2015-10-01 Thread Duncan Mackay
nction from library(zoo) after converting year month day to a date format with as.Date and go on from there Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mac...@northnet.com.au -Original Message- From:

Re: [R] 回覆︰ adding a line across plots in xy plot with panel.abline

2015-09-14 Thread Duncan Mackay
forgot to send to list From: Duncan Mackay [mailto:dulca...@bigpond.com] Sent: Tuesday, 15 September 2015 01:47 To: 'Christine Lee' Subject: RE: 回覆︰ [R] adding a line across plots in xy plot with panel.abline Hi If your panel function was like this (just adding to plot the points

Re: [R] adding a line across plots in xy plot with panel.abline

2015-09-14 Thread Duncan Mackay
l = function(x, y, ...){ panel.xyplot(x,y, ...) panel.abline(h=1,lty=2,lwd=3) } ) Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mac...@northnet.com.au -Original Message-

Re: [R] Adding a second Y axis on a dotplot

2015-09-12 Thread Duncan Mackay
I forgot to put a line about latticeExtra's doubleYScale library(latticeExtra) ? doubleYScale Duncan -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Duncan Mackay Sent: Sunday, 13 September 2015 00:56 To: R Subject: Re: [R] Adding a second Y axis

Re: [R] Adding a second Y axis on a dotplot

2015-09-12 Thread Duncan Mackay
Hi see https://stat.ethz.ch/pipermail/r-help/2007-June/134524.html to get you started. Its toolate or too early here Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mac...@northnet.com.au -Original Message

Re: [R] modify strip labels with given text using lattice package

2015-08-31 Thread Duncan Mackay
Hi Luigi add strip.custom argument barchart(test ~ count|assay, df, groups = res, stack = TRUE, main = "Comparison of test results", xlab = "Count", col = c("yellow", "blue"), strip= strip.custom(factor.levels = c("molecular test","serological test"),

Re: [R] Piecewise regression using segmented package plotted in xyplot

2015-08-28 Thread Duncan Mackay
,...) # panel.abline(segmented(lm(threshold~age),seg.Z = ~age, psi = NA, control = seg.control(K=1))) }, ) I do not know what the commented line means-- you may need to look at the subscripts section as well as panel.groups of ?xyplot and ?panel.xyplot Regards Duncan Duncan Duncan Mackay

Re: [R] xyplot colour points and layout

2015-08-27 Thread Duncan Mackay
,black), pch = rep(16,2))), type=p, xlab=list(Month,cex=1.5), ylab=list(Abundance,cex=1.5), auto.key = T) see names(trellis.par.get()) for a list of the settings Regards Duncan Duncan Mackay Department

Re: [R] date format in xyplot

2015-08-18 Thread Duncan Mackay
further trellis.par.get()$superpose.symbol will give you the values for superpose.symbol Beware: Do not make the labels etc so big that the axis labels are hard to read. Think of final size Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351

Re: [R] date format in xyplot

2015-08-18 Thread Duncan Mackay
Duncan -Original Message- From: Christine Lee [mailto:leptostra...@yahoo.com] Sent: Wednesday, 19 August 2015 00:26 To: R; Duncan Mackay Subject: RE: [R] date format in xyplot Thank you Duncan, I have tried the scales function. It ends up with 2015-09-15, which is acceptable. It is far much

Re: [R] Lattice: raw data and prediction of a non linear fitted function

2015-08-05 Thread Duncan Mackay
, newdata = list(time = seq(5,60,5))) print(xy.pre) llines( seq(5,60,5), xy.pre, col = magenta) } }) Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351

Re: [R] Using latticeExtra as.layer function with different number of plot panels

2015-07-30 Thread Duncan Mackay
I'm not upto date with some of the latticeExtra functions so cannot really comment otherwise. Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mac...@northnet.com.au -Original Message- From: R-help [mailto:r-help-boun

Re: [R] Mixed Date Formats

2015-07-29 Thread Duncan Mackay
)) )), origin = as.Date(1970-01-01)) Beware of the American format in months jan feb mar oct nov -- will need more conditions to be imposed Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mac...@northnet.com.au -Original

Re: [R] Opposite color in R

2015-07-28 Thread Duncan Mackay
) Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mac...@northnet.com.au -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Atte Tenkanen Sent: Tuesday, 28 July 2015 18:22

[R] plot auto key and text into panels using lattice

2015-07-21 Thread Duncan Mackay
problems start from the beginning with a minimal script eg xyplot(min.temp + max.temp ~ day, data = SeatacWeather, as.table = T, layout = ..., groups = ...) and build up from there. Its amazing what you find out. Duncan Duncan Mackay Department of Agronomy and Soil

Re: [R] (ordinal) logistic regression

2015-07-16 Thread Duncan Mackay
::arm lrm::rms if you want to do GEE that is another matter. Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mac...@northnet.com.au -Original Message- From: R-help [mailto:r-help-boun...@r-project.org

Re: [R] add outer strip for levels in lattice plot (useOuterStrips alternative for Lattice)

2015-07-08 Thread Duncan Mackay
= ps.Colours, layout = c(6,2) ) ) ## useOuterStrips Duncan -Original Message- From: Luigi Marongiu [mailto:marongiu.lu...@gmail.com] Sent: Thursday, 9 July 2015 09:22 To: Duncan Mackay; Dennis Murphy; r-help Subject: Re: [R] add outer strip for levels in lattice plot

Re: [R] add outer strip for levels in lattice plot (useOuterStrips alternative for Lattice)

2015-07-06 Thread Duncan Mackay
that ?gridRect and ?gridText from library(grid) Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mac...@northnet.com.au -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Luigi

Re: [R] Lattice: set col = black for box.rectangle and box.umbrella

2015-07-03 Thread Duncan Mackay
: Saturday, 4 July 2015 01:58 To: Duncan Mackay Subject: Re: [R] Lattice: set col = black for box.rectangle and box.umbrella On Fri, 3 Jul 2015, Duncan Mackay wrote: My settings are par.settings = list(fontsize = list(text = 10.5, points = 8

Re: [R] Lattice: set col = black for box.rectangle and box.umbrella

2015-07-02 Thread Duncan Mackay
= 20) ), This gives a red line instead of the large dot: it avoids bulls-eyes across the panel when there are a lot of factors Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mac...@northnet.com.au

Re: [R] R lattice : labeling of matrix groups of different size with strips

2015-06-25 Thread Duncan Mackay
I am not sure that changing the aspect ratio by using levelplot(plotMatrix[,,2], aspect = 1/0.6, ...) will do the job as I seem to remember doing something like that when first looking at your problem. There were unwanted side effects using grid.arrange is the

Re: [R] R lattice : labeling of matrix groups of different size with strips

2015-06-24 Thread Duncan Mackay
may have to annotate groups by grid.text with or without trellis.focus Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mac...@northnet.com.au -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf

Re: [R] How to add legend to a dotplot

2015-06-03 Thread Duncan Mackay
)), lines = list(lwd = c(2,1,2), lty = c(1,1,1), col = c(black,black,grey80)), space = bottom), which gives 3 columns: text points and lines. Regards Duncan Duncan Mackay Department

Re: [R] combine trellis lattice contour plot with simple plot() points() and text() commands?

2015-06-01 Thread Duncan Mackay
gpar call for line ending lwd = 5, col = 2) Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mac...@northnet.com.au -Original Message- From: R-help [mailto:r-help-boun...@r-project.org

Re: [R] dotplot

2015-05-16 Thread Duncan Mackay
lines this may cause trouble for you dotplot(val ~ lot, tmp, col.line = transparent, ylab = values, xlab=lot, scales=list(rot=30), aspect=1, pch=tmp$sybm, col=tmp$color) Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale

Re: [R] lm model exported from R to excel

2015-05-06 Thread Duncan Mackay
-Original Message- From: Livia Maria Vestergaard [mailto:lves...@student.sdu.dk] Sent: Wednesday, 6 May 2015 22:37 To: Duncan Mackay; R Subject: SV: [R] lm model exported from R to excel Hi Duncan Thank you so much - it worked :) Best Livia Fra

Re: [R] lm model exported from R to excel

2015-05-06 Thread Duncan Mackay
) writeLines(paste(fchars, sep = ), ff) close(ff) You can then bring this into Microsoft as an html file You may need to fill in some of the arguments in xtable to get the right border format etc If you are doing many you can make a function to do things Duncan Duncan Mackay Department of Agronomy

  1   2   3   4   >