[R] How to put given values in lower triangle of splom-plot?

2008-09-21 Thread Hofert Marius
Dear R-experts, I have found a splom-modification online which is given below. This works perfectly, but I would like to have a matrix of given correlation values to be used in the lower triangular part (lower.panel) of the splom-plot instead of calculated correlation values. Here is the

[R] Coefficient of determination in a regression model with AR(1) residuals

2008-04-23 Thread Hofert Marius
Dear R-users, I used lm() to fit a standard linear regression model to a given data set, which led to a coefficient of determination (R^2) of about 0.96. After checking the residuals I realized that they follow an autoregressive process (AR) of order 1 (and therefore contradicting the i.i

[R] How to replace German umlauts in strings?

2008-04-10 Thread Hofert Marius
Dear R-users, I have a file containing names of German students. These names contain the characters "ä", "ö" or "ü" (German umlauts). I use read.table() to read the file and let's assume the table is then stored in a variable called "data". The names are then contained in the first column,

[R] Alignment and Labeling of a color key in a xyplot?

2008-01-01 Thread Hofert Marius
Happy New Year to all R users! I have two short questions concerning a xyplot with a color key: 1) How do I properly place (align) the color key beside the xyplot? As you can see from the code listed below, the placement of the color key is not correct. I would like the upper and lower end poin

[R] Different number of labels in different panels

2007-12-31 Thread Hofert Marius
Hi, I would like to put a number to each of the plotted curves in each panel. The problem is that there are different numbers of curves in different panels, so as you can see from the code below, I could put the correct numbers to the curves in the first panel, but for the second panel, bo

[R] both lines and plot characters in a lattice plot key

2007-12-25 Thread Hofert Marius
Hello, I have two short questions concerning a key (legend) in a lattice plot. I have points represented by two different plot characters (crosses and circles) and they are colored from light to dark gray. I would like to have 3 parts in my legend showing the two different plot characters