search for: zakrisson

Displaying 13 results from an estimated 13 matches for "zakrisson".

2013 Feb 25
3
How to plot 2 continous variables on double y-axis with 2 factors: ggplot2, gplot, lattice, sciplot?
...re that the means are wrong as I have assumed that the below calculates the mean of each factor level separately and not the mean per level factor 1 AND factor 2. Is there a way of doing this in ggplot2? I have also tried plotmeans() in the sciplot package, but was unsuccessful. Sincerely Anna Zakrisson library(plotrix) ?brkdn.plot par(family="serif",font=1) brkdn.plot("y1", "factor1","factor2", data=mydata, mct="mean",md="sd", main="", cex=0.8, stagger=NA, xlab="facto...
2013 Mar 07
3
ggpliot2: reordering of factors in facets facet.grid(). Reordering of factor on x-axis no problem.
...raid of displaying the wrong things without noticing it. Here is my code and comments: I want to have my factor 1 in the order: "F", "E", "C", "D", "A", "B" instead of alphabetical. My normal methods do not work. with kind regards Anna Zakrisson # Some dummy data: mydata<- data.frame(factor1 = factor(rep(LETTERS[1:6], each = 80)), factor2 = factor(rep(c(1:5), each = 16)), factor3 = factor(rep(c(1:4), each = 4)), var1 = rnorm(120, mean = rep(c(0, 3, 5), each = 40),...
2013 Sep 19
3
lattice: double y - problem changing axis color after doubleYScale
...nes # though the shape - ideas? # Alternative ways that are not based on color (I have to do this black and white). # Is there possible to add shapes to the axis text? such as: # --O-- Nc on the left y-axis (but with lty=1: I could not do a non-dotted line on the keybord). with kind regards Anna Zakrisson Braeunlich PhD student Department of Ecology, Environment and Plant Sciences Stockholm University Svante Arrheniusv. 21A SE-106 91 Stockholm Sweden/Sverige Lives in Berlin. For paper mail: Katzbachstr. 21 D-10965, Berlin - Kreuzberg Germany/Deutschland E-mail: anna.zakrisson@su.se Tel work: +49-...
2013 Sep 18
1
ggplot2: changing strip text in facet_grid and a legend text problem
...t;black", family="serif", angle=00))+ theme(axis.title.y = element_text(size=16, colour="black", family="serif", angle=90)) + scale_fill_discrete(guide = guide_legend(), labels=c("cyanobacteria", "zooplankton")) p with kind regards Anna Zakrisson Braeunlich PhD student Department of Ecology, Environment and Plant Sciences Stockholm University Svante Arrheniusv. 21A SE-106 91 Stockholm Sweden/Sverige Lives in Berlin. For paper mail: Katzbachstr. 21 D-10965, Berlin - Kreuzberg Germany/Deutschland E-mail: anna.zakrisson@su.se Tel work: +49-...
2013 Mar 06
6
Ggplot2: Moving legend, change fill and removal of space between plots when using grid.arrange() possible use of facet_grid?
...;my measured stuff"))) + xlab("factor3") + ggtitle("") + labs(color = "factor1", shape = "factor1", group = "factor1", linetype = "factor1") p3 ary(gridExtra) sidebysideplot <- grid.arrange(p1, p2, p3, ncol=2) Anna Zakrisson Braeunlich PhD student Department of Ecology Environment and Plant Sciences Stockholm University Svante Arrheniusv. 21A SE-106 91 Stockholm Sweden Lives in Berlin. For paper mail: Katzbachstr. 21 D-10965, Berlin - Kreuzberg Germany/Deutschland E-mail: anna.zakrisson@su.se Tel work: +49-(0)309154...
2014 Jul 28
0
lattice, latticeExtra: Adding moving averages to double y plot
...ed to use the rollmean function from the zoo-packages, but I fail in insering this into lattice (I am not an experienced lattice user). I want to keep the data points in the plot. Find below dummy data and the script as well as annotations further describing my question. thank you in advance! Anna Zakrisson mydata<- data.frame( Year = 1980:2009, Type = factor(rep(c("stuff1", "stuff2", "stuff3"), each = 10*3)), Value = rnorm(90, mean = seq(90), sd = rep(c(6, 7, 3), each = 10))) library(Lattice) library(LatticeExtra) stuff1data <- mydata[(myda...
2013 Sep 19
0
ggplot2: two y-axis - any change?
...my graphs for my publications and it is a problem if I have to use another package, say lattice for every second plot. What are your thoughts on this for the future and are there already some possibilities in place? I prefer continusing using ggplot2 because it is brilliant. with kind regards Anna Zakrisson Braeunlich PhD student Department of Ecology, Environment and Plant Sciences Stockholm University Svante Arrheniusv. 21A SE-106 91 Stockholm Sweden/Sverige Lives in Berlin. For paper mail: Katzbachstr. 21 D-10965, Berlin - Kreuzberg Germany/Deutschland E-mail: anna.zakrisson@su.se Tel work: +49-...
2012 Sep 11
1
plotting smoother function on raw data
...cell[I], pred.gam$fit[I] - 2 * pred.gam$se.fit[I], lty = 2, lwd = 2) It all works fine if the model instead is: ModelSimple <- gam(var ~ s(var1, k=4), data = mydata) However, I get different results (for obvious reasons) if I predict from Model or ModelSimple. Please, help me!!!! Anna Anna Zakrisson Braeunlich PhD Student Department of Systems Ecology Stockholm University Svante Arrheniusv. 21A SE-106 91 Stockholm E-mail: anna@ecology.su.se Tel work: +46 (0)8 161103 Mobile: +46-(0)700-525015 Web site: http://www.ecology.su.se/staff/personal.asp?id=163 ><((((º>`•. . • `•. .• `•. . &...
2013 Feb 19
2
introducing jitter in overlapping graphs using ggplots (plotmeans). Also sciplot.
...quot;TN(",mu, g~L^{-1}, ")"))) #here I have calculated the standard deviations instead of the default standard errors. Thank you for taking your time. I have spent a long time trying to solve this and the frustration slowly approaches anger (in myself) :-) Yours sincerely Anna Zakrisson Braeunlich PhD Student Department of Systems Ecology Stockholm University Svante Arrheniusv. 21A SE-106 91 Stockholm Lives in Berlin. For fast paper-mail responses, please use the below address: Katzbachstr. 21 D-10965, Berlin - Kreuzberg Germany/Deutschland E-mail: anna@ecology.su.se Tel work:...
2009 Dec 22
2
IPTABLES --hitcount maximum value
Is the maximum permitted value for --hitcount documented anywhere? I reliably get a iptables-restore error when I specify a hitcount value greater than 20 but I cannot find any mention of there being a maximum value. -- *** E-Mail is NOT a SECURE channel *** James B. Byrne mailto:ByrneJB at Harte-Lyne.ca Harte & Lyne Limited
2011 Nov 29
0
Labels in xy-plots
...ied out on the data defined by the "groups" option (here: "year") When I call this, I cannot separate the lines from my different years. I would like them to have different colours/other markings (irrelevant for me) and identified on the side of the graph. Thank's! Anna Zakrisson Braeunlich PhD Student Department of Systems Ecology Stockholm University Svante Arrheniusv. 21A SE-106 91 Stockholm E-mail: anna@ecology.su.se Tel work: +46 (0)8 161103 Mobile: +46-(0)700-525015 Web site: http://www.ecology.su.se/staff/personal.asp?id=163 ><((((º>`•. . • `•. .• `•. . &...
2011 Dec 15
0
corCompSymm in gamm()?
...n, k=3) + s(Ncell, k=3) + s(LN.biom) + s(temp, k=3) + s(week, k=3) + fstation + fyear, method = "ML", weights = varIdent(form=~1 | fstation), data = data1, correlation = corCompSymm(form = ~ week|year)) #seems not to work in a gamm() Thank you for your time! Anna Zakrisson Braeunlich PhD Student Department of Systems Ecology Stockholm University Svante Arrheniusv. 21A SE-106 91 Stockholm E-mail: anna@ecology.su.se Tel work: +46 (0)8 161103 Mobile: +46-(0)700-525015 Web site: http://www.ecology.su.se/staff/personal.asp?id=163 ><((((º>`•. . • `•. .• `•. . &...
2012 Jan 09
1
Autocorrelation values? How to extract?
...nnot get the autocorrelation values. What is the argument? My aim is to multiply the dependent variable autocorrelation with the independent variable autocorrelation and then multiply by (N-j)/N where N is the sample size and j is the lag...calculate z-value...adjust my p-value...Sincerely Anna Zakrisson Braeunlich PhD Student Department of Systems Ecology Stockholm University Svante Arrheniusv. 21A SE-106 91 Stockholm E-mail: anna@ecology.su.se Tel work: +46 (0)8 161103 Mobile: +46-(0)700-525015 Web site: http://www.ecology.su.se/staff/personal.asp?id=163 ><((((º>`•. . • `•. .• `•. . &...