[R] definition of colorpalette

2010-09-21 Thread Daniel Stepputtis R
Dear group, I have recognized a strange behaviour of palette(). I tried to find any explanation but failed so far (or even didnt understood the idea behind - what is most probable). My original plan was to define a palette, save it in a variable and use it later for an image-plot. One reason

[R] barplot: space between axis and bars

2010-09-15 Thread Daniel Stepputtis
Hi all, I have a problem with a rather simple plot (which I have used several times) - barplot. I want to create a barplot, where no space is between the axis and the bars. Example: barplot(rnorm(10), space=0) creates a vertical axis at the left and bars. I want to skip the space between bot

Re: [R] background colour

2008-01-15 Thread Daniel Stepputtis
Brian Ripley schrieb: > 'bg' is both a graphics parameter and an argument to plot.default: the > two usages have different meanings. Please study the help (e.g. ?par, > ?plot.default, ?points) carefully, since you are confusing the two > meanings in your examples. >

[R] background colour

2008-01-13 Thread Daniel Stepputtis
Dear list, I am using R 2.6 on a Windows XP machine. I divided my device window and tried to set the backgroundcolor for each plot region/figure region separately. This seems not possible?? A simple example: # create random numbers a <- rnorm(100) # divide device window par(mfrow=c(1,2)) # set

Re: [R] comparison of two vectors

2007-12-04 Thread Daniel Stepputtis
Dear Ben, I was searching for the same problem. Thank you very much, it helped me a lot and I will use it quite often! In addition to the problem given by tintin_et_milou. I have to compare a two pairs of vectors. I.e. I have two datasets each with latitude and longitude (which defines the geo