Re: [R] Plot in real unit (1:1)

2018-06-06 Thread Brandstätter Christian
Thanks a lot! Jim Lemon schrieb am Do., 7. Juni 2018, 06:13: > Hi Christian, > Well, it almost worked. I suspect that the postscript device adds some > padding to account for the printable area, so with a bit of > experimentation, The following example seems to do what you want. When > I

[R] vertical lines in riverplot

2016-02-03 Thread Brandstätter Christian
Dear List, I want to draw a Sankey-diagramm in R, for which I would use the riverplot package. It would be really nice to be able to 1. draw vertical lines (="edges") between nodes on the same x-axis (T03-T04 in the example below) and 2. to invert the plot. Now the "edge" between T03 and T04 is

Re: [R] Help with lattice panel function

2015-04-29 Thread Brandstätter Christian
This worked for me. It is btw. quite confusing to name your y-variable x. I think part of the problem arised from the date format. xyplot(x + max.x ~ date, data = my.newdf, ylab = x, panel = function(x, y, x2, ...){ panel.xyplot(x, y, type = l)

Re: [R] aggregating variables (sum within groups)

2015-02-26 Thread Brandstätter Christian
Dear David, your email is quite confusing. Do you want to get the sum for each group (A,B,C) or each variable as would be indicated by your result? sum by group: aggregate(data=testdata,var1~group,sum) count by group: aggregate(data=testdata,var1~group,length) sum by variable:

Re: [R] Help on Principal Component Analysis in R

2015-01-14 Thread Brandstätter Christian
Hi, it could also be that during reading your csv the matrix became a character matrix. Try str(x); this should show you if your values are seen as numeric. Also, if you have descriptive columns (e.g. date, labels, etc.) they must be removed before calculating PCR. With best regards Brandstätter

[R] issues with corner.label() from plotrix

2014-12-16 Thread Brandstätter Christian
Dear Mr. Jim Lemon, I tried to contact you via e-mail, but apparently it didn't work. I enjoy using the function corner.label() a lot, since I tend to use multiplots. However, recently I discovered two issues: firstly, the parameter cex doesn't work; for this I was able to produce a simple