Displaying 20 results from an estimated 1000 matches similar to: "ggplot pale colors"
2011 Jan 18
2
ggplot2, geom_hline and facet_grid
Hi
I have a long data set on which I want to do Bland-Altman style plots for each rhythm type
Using ggplot2, when I use geom_hline with facet_grid I get an extra set of empty panels.
I can't get it to do it with the "Diamonds" data supplied with the package so here is a (much abbreviated) example:
> lvexs
cvd_basestudy ecd_rhythm fixed_time variable_time
1 CBP05J02
2013 May 14
1
Tamaño plots y calidad en grafico ggplot
Hola a tod en s,
bueno, un poco al hilo de un mensaje anterior, reformulo la pregunta y
pongo código completamente reproducible, a ver si hay más suerte.
Estoy con un informe y hay que hacer algunos gráficos con datos
diferentes con ggplot2, y hay que poner el mismo tamaño para todos
ellos.
El problema es que R cambia automáticamente el tamaño del área de
trazado y el margen en función de
2009 Feb 03
1
Time series plots with ggplot
Hi,
I am newbie user of ggplot and would like some assistance in
implementing time series plots.
I'd like to know how the tsdiag plot can be made in ggplot?
Thanks
Harsh Singhal
Decisions Systems,
Mu Sigma Inc.
2017 Sep 26
2
Adding non-data line to legend ggplot2 Maximum Contaminant Level
Hello everyone,
I have a plot showing chloride concentrations for various point over time.
I also have a dotted line that show the Secondary Maximum Contaminant Level
(my screening limit) on the graphs at 250 mg/L. But I can not figure out
how to include the dotted line / Secondary Maximum Contaminant Level in
the legend. Any thoughts? My code is as following and is linked to my
data on the
2023 Oct 30
1
Missing shapes in legend with scale_shape_manual
Hello,
I'm trying to plot a graph of blood glucose versus date. I also record
conditions, such as missing the previous night's medications, and
missing exercise on the previous day. My data looks like:
> b2[68:74,]
# A tibble: 7 ? 5
Date Time bg missed_meds no_exercise
<date> <time> <dbl> <lgl> <lgl>
1 2023-10-17 08:50
2013 Jan 08
2
plot residuals per factor
Dear R-users,
I want to plot residuals vs fitted for multiple groups with ggplot2.
I try this code, but unsuccessful.
library("plyr")
models<-dlply(dat1,"d",function(df)
mod<-lm(y~x,data=df)
ggplot(models,aes(.fitted,.resid), color=factor(d))+
geom_hline(yintercept=0,col="white",size=2)+
geom_point()+
geom_smooth(se=F)
--
---
Catalin-Constantin ROIBU
2012 Jul 03
2
ggplot2: legend
Dear all,
I produced the following graph with ggplot which is almost fine, yet I don't like that the legend for "Means" and "Observations" includes a line, though no line is used in the plot for those two (the line for "Overall Mean" on the other hand is wanted):
library(ggplot2)
ddf <- data.frame(x = factor(rep(LETTERS[1:2], 5)), y = rnorm(10))
p <-
2013 Sep 18
1
ggplot2: changing strip text in facet_grid and a legend text problem
Hi,
Dummy data script and scripts are attached below.
I would like to change the plot to look like this:
2010 Jun 10
1
Order labels in qplot() - ggplot2 {help}
Hello,
I want to arrage the label according to my preference eg.. (va, vp, a, b,
c) but don't know how to supress default ordering. Any
suggestions?
Please try the code below:
n <- c("va", "vp", "a", "b", "c")
p <- c(2, 2,1, 3,5)
pm<- c(3,4,2,5,4)
pn <- c(1,1,1,2,3)
x<-data.frame(cbind(n,p,pm,pn))
library(ggplot2)
qplot(x=n,
2011 May 25
2
barplot groups of different size i.e. height is NOT a matrix
Hello,
I want to use the function barplot do display several group of bars.
A standard example is given at this link
http://onertipaday.blogspot.com/2007/05/make-many-barplot-into-one-plot.html
But in their example the 4 groups of bars are all composed of 8 bars.
I want to be able do display the same kind of graph but where the number
of bars in each group are not the same. For example the
2010 Oct 19
3
plot CI and mortality rate
Dear R Users:
I have the individual mortality rate and 95% CI of 100 hospitals,
how to do the plot with the individual hospital in the Yaxis, and the
mortality rate and 95% CI in the Xais and a overall mean as a reference
line?
Thanks and regards,
Xin
[[alternative HTML version deleted]]
2013 May 13
0
Tamaño plots y retoques de ticks en grafico ggplot
Hola a tod en s,
estoy con un gráfico algo complicado de ggplot y me he quedado
bloqueado con un par de cosas.
Si se ejecuta el siguiente código, se obtiene el gráfico que pongo a
continuación.
Necesitaría que en la línea sombreada de color azulado, correspondiente
a Alpha (252), esta etiqueta "Alpha (252)" también saliese sombreada o,
al menos, destacada con otro color y en
2013 Oct 11
1
behaviour of read.xls (gdata package) when worksheet usesuser-defined cells formats
(I'm afraid this post didn't reach the list on last Wednesday, here it is again )
hi R-list,
And sorry for my frenglish !
I am running R < Good Sport > release ( i386-w64-mingw32/i386 (32-bit) ) ) under Windows 7 Professional, Service Pack 1.
My perl executable is ActivePerl build 817 [257965] (i.e. version 5.8.8.817). Usually it is working fine.
Using the gdata ::read.xls
2017 Aug 05
2
Nested for loop
Hi! Thanks for taking the time to read this.
The code below creates a graph that takes 100 samples that are between 5%
and 15% of the population (400).
What I'd like to do, however, is add two other sections to the graph. It
would look something like this:
from 1-100 samples take 100 samples that are between 5% and 15% of the
population (400). From 101-200 take 100 samples that are between
2013 May 18
3
bar plot with non-zero starting level
Hi,
I want to plot grouped bars to compare 95% confidence interval estimates
from two models. Each bar represents a 95% confidence interval estimate
of a coefficient from one of the two models. Each group represents
confidence interval estimates of the same coefficient from the two models.
I think such a bar plot will nicely present whether 95% confidence
interval estimates of the same
2010 Apr 19
2
plotting RR, 95% CI as table and figure in same plot
Hi all--
I am in the process of helping colleagues write up a ms in which we fit
zero-inflated Poisson models. I would prefer plotting the rate ratios
and 95% CI (as I've found Gelman and others convincing about plotting
tables...), but our journals usually like the numbers themselves.
Thus, I'm looking at a recent JAMA article in which both numbers and
dotplot of RR and 95% CI are
2020 Oct 23
0
How to shade area between lines in ggplot2
Hi
Did you try google? I got several answers using your question
e.g.
https://stackoverflow.com/questions/54687321/fill-area-between-lines-using-g
gplot-in-r
Cheers
Petr
> -----Original Message-----
> From: R-help <r-help-bounces at r-project.org> On Behalf Of Luigi Marongiu
> Sent: Friday, October 23, 2020 9:59 AM
> To: r-help <r-help at r-project.org>
> Subject:
2017 Aug 06
0
Nested for loop
Hi Kirsten,
I can run your example code but I can't quite follow your division of sampling. Can you restate the the task? Below is what I think you are asking for, but I have the feeling I may be off the mark.
Set A: 400 samples, draw 100 in range of 5 to 15
Set B: 800 samples, draw 100 in range of 5 to 15
Set C: 300 samples, draw 100 in range of 5 to 15
Ben
> On Aug 5, 2017, at
2008 Dec 14
0
New version of ggplot2, 0.8.1
ggplot2 ------------------------------------------------------------
ggplot2 is a plotting system for R, based on the grammar of graphics,
which tries to take the good parts of base and lattice graphics and
avoid bad parts. It takes care of many of the fiddly details
that make plotting a hassle (like drawing legends) as well as
providing a powerful model of graphics that makes it easy to produce
2008 Dec 14
0
New version of ggplot2, 0.8.1
ggplot2 ------------------------------------------------------------
ggplot2 is a plotting system for R, based on the grammar of graphics,
which tries to take the good parts of base and lattice graphics and
avoid bad parts. It takes care of many of the fiddly details
that make plotting a hassle (like drawing legends) as well as
providing a powerful model of graphics that makes it easy to produce