Displaying 20 results from an estimated 10000 matches similar to: "repeating colors in graph"
2003 Oct 23
6
repeating colors in graph 2
I've tried looking at ?colors and ?palette and if I'm understanding it
correctly, I'm supposed to type in (for example) palette(rainbow(13)) before
I type in my plot (of 13 lines) if I want 13 different colors. But this does
not work. Other things that i have tried besides rainbow give me errors.
Am I just doing something completely wrong?
Anna
2013 Jun 10
1
Selecting divergent colors
Hi,
I was trying to make a density plot with 13 samples. To distinguish each
sample, it would be good if each color is as different as possible from the
other colors. I could use the built in function, but that does not do more
than 8 colors and then goes back to recycling the cols. If I use a palette,
then it is really difficult to distinguish between the colors.
So, is there a way that I can
2013 Feb 01
2
Change default order of colors & line types
Dear R users,
I'd like to change the default order of colors & line types.
Especially I am using ggplot2 and using color Set1.
In Set1, the default color order is red, blue, green, violet,.. ect.
However, I want to put red in fourth (not first).
Likewise, I want to change the order of default linetype. I want to
put "solid" line in fourth.
How can I do thses?
R code to draw the
2003 Jun 12
1
indexing into a list 2
I didn't explain myself well.
You are right about not needing a list on the right hand side of the equation
below. What I end up with is a list of arrays. Now what i would like to do
is to access the individual elements in the arrays in the list. For example,
when I type, y[[1]], I just get the whole first array. How do I get the
first element in the first array for instance? Is
2003 May 23
3
calling files of commands in R
Please excuse me if this is a very basic question and I am just
misunderstanding the basic structure of R.
Right now, I am writing everything in a buffer (emacs) and then copying it
into R when it is correct. Is there a way to save a file of commands and
then just type the file name or something in R and have the commands executed
within R?
Anna
2013 Dec 09
2
Problem with R colors
Hello,
I am having difficulty obtaining the correct colors in my R charts.
> colors()[c(552, 254, 26)]
[1] "red" "green" "blue"
But, if I specify col=552 in my barplot, I get gray bars. Likewise,
col=254 gives bright pink, and col=26 is a red-orange. I get accurate
results when I spell out the names, but I am making a pallet with 20- 30
colors and it is a
2010 Jan 28
2
color palette for points, lines, text / interactive Rcolorpicker?
I'm looking for a scheme to generate a default color palette for
plotting points, lines and text (on a white or transparent background)
with from 2 to say 9 colors with the following constraints:
- "red" is reserved for another purpose
- colors should be highly distinct
- avoid light colors (like "yellow"s)
In RColorBrewer, most of the schemes are designed for area fill
2011 Nov 02
3
palettes for the color-blind
Everyone,
I'm working with scatter plots with different colored symbols (via
lattice). I'm currently using these colors for points and lines:
col1 <- c(rgb(1, 0, 0), rgb(0, 0, 1),
rgb(0, 1, 0),
rgb(0.55482458, 0.40350876, 0.04166666),
rgb(0, 0, 0))
plot(seq(along = col1), pch = 16, col = col1, cex = 1.5)
I'm also using these with transparency (alpha
2003 May 07
2
plot vertical labels along x axis
I know how to print my own labels along the x axis:
plot(1:10,xlab = "My label", axes = FALSE)
axis(1,at=seq(1,10,by=2),labels=c("first","second","third","fourth","fifth"))
Is there a way to make the labels print vertically along the axis rather than
horizontally? (I'm not sure if this is even going to look all right, but I
2003 Jul 31
2
anova
I am totally confused as to how to use anova. I have three vectors and would
like to use anova on them but I don't understand how lm or glm comes into
play. In matlab, you just give the three vectors. Why isn't it the same in
R?
Any help would be greatly appreciated.
Anna
2012 Dec 12
3
create a color palette with custom ranges between colors
Hello everybody,
I'm trying to create my own color palette on R, in order to interpolate some
different temperature data on different maps (daily means, seasonal
means,...).
I would like to create a color palette which works for each map, so I need a
color palette between -40 and +40?C. Sometimes my data for one map range
from -10 to +20, sometimes from 10 to 30, etc... but always between
2003 Jul 01
3
lines and legend
When I am trying to put a legend on a plot where I am using "lines", R just
ignores it. I can do it with boxplot or plot, but just not with lines. Am I
doing something wrong? Maybe I am just making a mistake?
Anna
2008 Apr 24
2
alternatives to RColorBrewer?
I've found RColorBrewer useful for its qualitative palettes, but wished that
it could generate more than 12 qualitative palettes (e.g. with Set3). Any
suggestions for alternative color palette generators that can handle e.g. 18
distinctive colors? (I'm aware of using rainbow(), but this doesn't
generate enough distinct colors when the number of palettes is large).
Thanks,
Andrew
2005 May 23
6
colors and palettes and things...
After trying to find if there was a color picker in the FAQs and the help,
I thought I would send a post here. I was overwhelmed with all the
wonderful color choices R has predefined (discovered after typing in
colors()) but can't figure out what they all (by name) look like. Is there
a color picker or some other method to display all those colors next to
the name?
I think I can put together
2009 Mar 13
5
Selecting / creating unique colours for behavioural / transitional data
Dear all,
This seems like a simple problem but i've searched the help files and tried
various options but failed, so apologies in advance for asking what i'm sure
is an easy thing to do!
In short, I have displayed behavioural data using the TraMineR package such
that there is a colour change between the transition of behaviours, however,
all the methods that i have used thus far have
2008 Jan 07
7
rainbow function
Hello
I'm using rainbow function to generate 10 colors for the plot and it is
difficult to tell the neighboring colors from each other. How can I make
the colors more differently.
Thanks
Zhaoming
[[alternative HTML version deleted]]
2003 Apr 29
2
plots
I have two separate questions.
The first is when I use xlab, the labels on my tic marks disappear. Is there
a way to make them reappear? Also, is there a way to make my own labels for
the tick marks?
My second question is, after I have spent a lot of time getting my plot to
look just right, I want to save it to a file, but the only way I seem to know
how to do it is to first use
2006 Nov 01
1
repeating symbols and colors
Here?s an easy one. Well, easy for those more clever than I am.
I am plotting several groups and use symbols 15:25, pch <- 15:25
Sometimes, however, I need more than those and would like to have them
recycled automatically so that pch[12] = pch[1]. Perhaps I can use %% or
kludge up a multi-line, multi-if solution, but hope that a kind helper can
suggest something more elegant.
I am also
2004 Mar 24
5
colors, lines, characters .... documentation
Hi,
Very so often when i am plotting something, doing a histogram, or
whatever i am struggling to find out which are the numbers for
different colors, palette names, types of lines, symbols, etc. Is
there any documentation on line with all these numbers / names
and the associated symbol / color???
For example if i am using the command image it uses a palette
from red to yellow, with red the