Displaying 20 results from an estimated 10000 matches similar to: "Background color in plots."
2017 Jan 27
4
Suggestion: barplot function
Hello developers folks!
First, congratulations for the wonderful work with R.
For science, barplots with error bars are very important. We were
wondering that is so easy to use the boxplot function:
boxplot(Spores~treatment, col=treatment_colors)
But there is no such function for barplots with standard deviation or
standard error. It becomes a "journey" to plot a simple graph (e.g.
2002 Sep 23
3
New version of gregmisc package
Version 0.6.0 of the gregmisc package has just been released on CRAN.
Description:
===========
Package: gregmisc
Description: Misc Functions written/maintained by Gregory R. Warnes
Title: Greg's Miscellaneous Functions
Version: 0.6.0
Date: 2002/09/23
Maintainer: Gregory R. Warnes <Gregory_R_Warnes at groton.pfizer.com>
Author: Gregory R. Warnes. Includes code provided by Ben
2002 Sep 23
3
New version of gregmisc package
Version 0.6.0 of the gregmisc package has just been released on CRAN.
Description:
===========
Package: gregmisc
Description: Misc Functions written/maintained by Gregory R. Warnes
Title: Greg's Miscellaneous Functions
Version: 0.6.0
Date: 2002/09/23
Maintainer: Gregory R. Warnes <Gregory_R_Warnes at groton.pfizer.com>
Author: Gregory R. Warnes. Includes code provided by Ben
2008 Apr 07
2
How to add background color of a 2D chart by quadrant
Hi,
I have a 2D chart that is divided into four quadrants, I, II, III, IV:
plot(1:10,ylim=c(0,10),xlim=c(0,10),type="n")
abline(v=5,h=5)
text(x=c(7.5,7.5,2.5,2.5),y=c(2.5,7.5,7.5,2.5),labels=c("I","II","III","IV"))
I would like to fill each quadrant with a background color unique to the
quadrant. Does anyone know how to do this in R?
Thanks,
--
2003 Mar 12
1
Filling graphic objects
I have used polygon() to mark the confidence limits of a survival curve.
In another project, I have used the col parameter to fill my boxplots.
The poly() description refers to filling but actually produces
hatching (i.e. lines ).
boxplot() does truly fill the boxes with a colour or shades of grey
(e.g. col="red").
My novices perception of R graphics is:
If you can hatch it, you
2004 Nov 24
1
reshaping of data for barplot2
Dear All,
I have the following data coming out from
s <- with(final,
summarize(norm, llist(gtt,fdiab),
function(norm) {
n <- sum(!is.na(norm))
s <- sum(norm, na.rm=T)
binconf(s, n)
}, type='matrix')
)
ie
gtt fdiab norm.norm norm.norm2 norm.norm3
18
2012 Sep 24
3
boxplot of different colors
Hello,
I am making a boxplot of 13 boxes.
I tried to color the box using 13 colors but failed.
Only red and brown were displayed.
Green, blue, and grey disappeared.
Please kindly advise modification after checking the code below.
Thank you in advance.
Elaine
R code
# data input
dataN
<-read.csv("H:/a_mig_distance_B_NB/R_data/Mig_bird_586_20120925.csv",header=T,
row.names=1)
2002 Jun 07
2
offset labeling boxplots
Hello everybody,
often I plot boxplots with different number of boxes (up to 200 boxes).
I'd like to give every box a readable label on the x-axis. Therefore, I
decrease the fontsize of the names and plot them vertical.
But if you zoom into the plot (pdf) you will find an offset between the
tickmark and the label - the label is shifted to the right.
If you vary the box.count in the
2011 Aug 18
1
Specifying data point locations on x-axis using boxplot() and points()
Hi all,
I would like to ask a question with regard to R graphics. I am currently
trying to add data points in boxplots using points(). In my script, I add
up boxplots three times using add=TRUE. I use points() every time I add
boxplots, and I see data points. However, I see all data points are clustered
at three specific points on x-axis; the locations of the data points
are not overlapping with
2003 Jun 19
3
Background color(s) for groupedData plot
I've been using par() to check the graphics parameters
associated with both plot(<fitted linear model>) and
plot(<grouped data object>). AFAIK the only differences
are in the $cxy, $usr, $xaxp, and $yaxp parameters but
the background color for the grouped data plot is grey
while the linear model plot has a white background.
When I've tried par(bg = "white") prior to
2011 Mar 05
3
Change panel background color in spplot()
Hi!
How does one change the background color of the map-panel in spplot()?
Example:
library(sp)
data(meuse.grid)
gridded(meuse.grid) = ~x+y
spplot(meuse.grid, "part.a")
How would I get another background-color for the map-panel (but not for
the whole plot) here?
Thank you!
Marcel
2011 May 18
3
leyenda cortada en el eje Y
Hola:
Soy nuevo en esto de R, llevo toda la mañana perdida con esto, a ver si
alguien me puede ayudar, Cuando genero el gráfico con el siguiente
archivo:
library(gplots)
data <- read.table("data.dat",h=T)
postscript(file = "join10kb.ps", horizontal = FALSE, onefile =
FALSE,family = "Helvetica", width = 5, height = 4) par(mar=c(5.1, 4.1,
0.1, 0.1))
d <-
2005 Jul 08
1
Overlying a Normal Dist in a Barplot
R-Users,
Hopefully someone can shed some light on these questions as I had
little luck searching the archives (although I probably missed something
in my search due to the search phrase). I estimated multinomial
probabilities for some count data (number successful offspring) ranging
from 0 to 8 (9 possible response categories). I constructed a barplot
(using barplot2) and I want to
2002 Oct 31
1
Re: gregmisc version 0.7.3 now available
Dear Greg,
Thanks for the new release. The decomposition of the SSQ is just what I need!
Regards,
Martin.
Martin Hoyle,
School of Life and Environmental Sciences,
University of Nottingham,
University Park,
Nottingham,
NG7 2RD,
UK
Webpage: http://myprofile.cos.com/martinhoyle
>>> gregory_r_warnes at groton.pfizer.com 10/30/02 07:16PM >>>
Version 0.7.3 of the gregmisc package
2009 Apr 19
2
Sweave: Changing the background color, adding a border
Hi all,
I am using Sweave to produce a document. Unfortunately, I have to print
several copies and I can't print them in color. So I would like to
change the way of printing the code. I would like to print the code in a
box with a black borderline and a grey background (quite classic). Is it
possible to do it by changing some Schunk options?
Christophe
2008 Jul 20
2
fill in area between 2 lines with a color
Hi - I'd like to have the area between 2 lines on a x-y plot be filled with
grey, but I haven't had
any luck using polygon or rect. (In reality, I'd like to do this for twice
- once for a low group and once for a high group - and then I'd like to plot
a set of data points for a 'normal' group together with these 2 grey areas.)
Here's a simple example of the 2 lines:
2012 Sep 20
3
Line over Boxplot
Very much a rookie at R, and have only recently started using it again so
pardon the simple question. I am trying to produce a box plot from one data
set and then overlay a line plot from another data set. The box plot data
set is made up of 20 sets of 30 data points, or 600 total data points. The
line has only 30 total data points. The box plot is plotting fine, but for
some reason, the line plot
2004 Oct 01
2
Background color Windows device (newbie)
Dear R Gurus
Just started on R !
Using xYplot from Hmisc (R 1.9, W2K) I get a grey/blue background that I
would like to change to white (ie no background) or may be to another
color.
Tried to do that with par(bg) but only changed the color of the trellis
heading.
What's the right command to do that ?
Kind regards, JL
PS if anyone has nice default settings for win device please let me
2009 Oct 12
1
How to hide tick lines behind the "box-and-whisker" 's in a boxplot
Dear R people,
I wonder how to hide tick lines behind other figures in a plot, e.g.
in a boxplot.
# Sample code:
x<- c(rep(4,50),rep(5,20),rep(6,50),rnorm(20,5,1))
boxplot(x)
axis(2,tck=1,col.ticks='grey',lty=5 )
# end of sample code
The tick lines is put on top of the box-plot, but I would like to put
these lines behind the box and whiskers..
Regards
Helmer
2007 Mar 01
2
barplot2, gap.barplot
Hello,
I try to handle a simple bar-plot, but it turns out to be not as simple
as I thought.
1) I have created a .dat-File, e.g. test.dat:
DATA DATA-SEM
2.2 0.32
6.2 1.30
12.7 1.61
48.6 3.08
4.1 0.86
4.5 0.32
1.5 1.13
1.2 1.08
The first row is the data represented by bars. The second row deals with
the Standard Error of Mean. The lines correspond to time-intervals of
experiments.
2) I now