Displaying 20 results from an estimated 30000 matches similar to: "How to change the xlab name's color?"
2010 Sep 06
2
how to change the xlab name?
I simply put, plot(density(XXXX), main="XXXX", + xlab = "XXX"), it says that
I have an unexpected "=" in it.
--
View this message in context: http://r.789695.n4.nabble.com/how-to-change-the-xlab-name-tp2528733p2528733.html
Sent from the R help mailing list archive at Nabble.com.
2011 Aug 28
1
Help with levelplot color assignment in lattice
Dear R users,
I'm currently trying to make level plots of a longitudinal study of the
spatio-temporal spread of a plant disease in a field, but the results of the
color key assignment isn't what I expect.
Here's more info. I recorded the level of a disease on an ordinal scale from
0 (no disease) to 9 (dead plant) on a grid that has 9 rows and 14 columns.
The disease level on each
2009 Sep 28
1
xyplot help - colors and break in plot
Dear List,
I am new to lattice plots, and am having problems with getting my plot to do what I want. Specifically:
1. I would like the legend to have the same symbols as the plot. I tried simpleKey but can't seem to get it to work with autoKey. Right now my plot has dots (pch=19) and my legend shows circles.
2. I have nine groups but xyplot seems to only be using seven colors, so two
2012 Mar 26
2
trellis plot
Hi everyone,
I am just trying to figure out how to do a xyplot where in addition to
dots and lines I can change dots' colors according to an individual
variable (e.g., marital disruption across time, a dummy 0/1). When I
use "groups" specification (see below), I get two different lines for
each individual based on groups, and what I want is to get one line
connecting dots, and
2012 Jan 19
1
Legend problem in line charts
Hi all,
Small problem in generating the line charts.
Question: Legend for the first graph is coming wrong., for second graph correctly. Please fix the legend postion at the down of graph.
Plesae give me the solution.
Thank you
Devarayalu
Orange1 <- structure(list(REFID = c(7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8,
8, 8, 8, 8, 9, 9, 9, 9), ARM = c(1, 1, 1, 1, 2, 2, 2, 2, 1, 1,
1, 1, 2, 2, 2,
2011 Apr 13
3
latex, eps graphics and transparent colors
I have a diagram to be included in latex, where all my figures are .eps
graphics (so pdflatex is not an
option) and I want to achieve something
like the following: three concentric filled circles varying in lightness
or saturation. It is easiest to do this using
transparency, but in my test using the postscript driver, the
transparent color fills do not appear. Is it
correct that postscript()
2009 Feb 02
2
Defining plot colors based on a variable
Hi, I have been trying unsuccessfully to plot data using different colors
based on a variable within a subset of an imported file. The file I am
reading is about 20000 lines long and has a column (in the example called
FILE) that contains approximately 100 unique entries. I would like to plot a
subset of the data from the file and key the color from the FILE column,
This is what my file looks like
2011 Feb 20
2
Same color key for multiple lattice contour plots
Hi all,
I'm trying to make multiple lattice contour plots which have the same color
key, to allow good comparisons. However, I run into some problems when
fitting the plots to the color key. Basically my strategy to tackle this
problem was:
1) define a color key for all plots;
2) calculate the variable range for each plot;
3) calculate the range of colors from the color key that correspond
2010 Sep 21
1
Colorramp in Maptools, how to choose min and max values for the fg= argument
Hello,
I am using maptools for plooting geographical data.
The colour of the region indicates some region dependent value
(population for example).
I pass the colours of the regions to the plot.Map function by defining
the foreground colour:
jet.colors = colorRampPalette(c("#00007F", "blue", "#007FFF", "cyan",
"#7FFF7F", "yellow",
2003 Dec 04
1
assigning colors to barplot when beside=TRUE
dear list,
i am having trouble coloring the bars in a barplot. my data have two
groups, which i would like to plot side by side. within each group i
want to sort the observations in decreasing order, like a pareto
chart. the bar colors would relfect the value of a third variable.
below i have generated a reproducible example. the bar heights are a
given pig's "gain",
2011 Aug 09
1
Transparent color ramp problem
Hello,
I can't seem to add transparency to any color ramp I create using colorRampPalette(). Can someone tell me if it is possible to create transparent colour ramps?
I am attempting to map shaded relief under elevation data. I know I can use the terrain.colors() with the alpha option, but I would prefer to create my own colour ramp using more vibrant colours.
My most recent attempt at
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]]
2008 Aug 15
6
continuous coloring of a polygon
R2.7.1, WinXP
Hi,
I have a polygon inside a circle as follows:
radius <- 3
x <- seq(-radius,radius,length=2000)
y <- sqrt(radius^2-x^2)
xx <- c(x,-x)
yy <- c(y,-y)
plot(xx,yy, xlim=c(-radius,radius),ylim=c(-radius,radius), type="l",
ylab="", xlab="", axes=F)
radius <- 2.7
x1 <- seq(-radius,radius,length=2000)
y1 <- sqrt(radius^2-x1^2)
2011 May 02
2
Help with coloring segments on a plot
Hi. I need a very short piece of help regarding colouring segments plotted
on a graph.
When I am plotting segments for the graph, I am using "red" and "darkgreen
for the values "1" and "2" respectively. Heres the relevant line of code in
R:
+ col = c("red", "darkgreen")[line.colour.value])
I just need to extend this to refer to a larger
2009 Oct 16
2
using a custom color sequence for image()
Hi, I'd like to use a custom color sequence (black - low values, green -
high values) in am image() plot. While I can specify colors (say a sequence
of grays) to the col argument, the ordering is getting messed up. I have two
questions:
1. How can I get a sequence of say 256 colors starting from black and ending
in green?
2. How is this specified to image() such that it uses the colors in
2007 Sep 04
1
Rcmdr scatter3d
Hi, I am using the scatter3d function in Rcmdr to plot
the first 3 principal components, I have a grouping
variable of 2 groups, and tried to plot points with
different colors, somehow I couldn't change the
default colors of the 2 groups (blue and green)by
using option points.col=c('red','blue'), what's the
problem here?
scatter3d(all.pca$x[,2],all.pca$x[,3],all.pca$x[,1],
2007 Oct 01
4
how to plot a graph with different pch
I am trying to plot a graph but the points on the graph should be
different symbols and colors. It should represent what is in the legend.
I tried using the points command but this does not work. Is there
another command in R that would allow me to use different symbols and
colors for the points?
Thank you kindly.
data(mtcars)
plot(mtcars$wt,mtcars$mpg,xlab= "Weight(lbs/1000)",
2012 Feb 15
2
assign same legend colors than in the grouped data plot
Dear community,
I've plotted data and coloured depending on the factor variable v3.
In the legend, I'd like to assign properly the same colors than in the
factor (the factor has 5 levels).
I've been trying this but it doesn't work.
plot(var1, var2, xlab = "var1", ylab = "var2", col =var3 , bty='L')
legend(locator(1),c("level 1 var3",
2011 Sep 07
2
ggplot2-Issue placing error bars behind data points
Hi all,
This seems like a basic problem, but no amount of playing with the code has
solved it. I have a time-series data set like that shown below (only longer)
and am seeking to plot the data with filled, circular points and error bars.
I would like the error bars to be behind the points otherwise they tend to
obscure the points (especially when I have a lot of points in the actual
data set).
2008 Mar 03
3
Plot using colors
Dear R users,
I have a problem since I try to plot my datas with different colors.
plot(tvar, var, xlab="zeit [s]",ylab="Variation [%]", col = ifelse(var <=
varstability, 'green','red'))
this works well!
But since I add a type="l" to my plot, it will color all the plot with
green!!!
Is there any solution? I avoid to use teachingDemos.
Thanks.
--