Displaying 20 results from an estimated 200 matches similar to: "ggplot2: edge outlines on points"
2008 Oct 15
1
ggplot2: sub/super-script axes labels
How are sub/superscripts designated for text in axis labels? As in
this y-axis label:
scale_y_continuous("Respiration, pmol O2 h-1")
where the "2" needs to be subscripted and the "-1" needs to be
superscripted.
Thanks.
Adam
---------------------------------------------------
Adam G. Marsh, Ph.D.
Associate Professor
Marine Biological Sciences
University of
2011 Jul 10
2
grey colored lines and overwriting labels i qqplot2
I created this graph in ggplot and added ablines to the different facets by
specifying with subset commands. As you might see, there are still a few
issues.
1.) I would like to have the diamonds in a grey scale instead of colors. I
accomplished this (see graph 2) until I overwrote the label title for the
treatments and the colors came back (graph 1). I used these two commands:
p=ggplot(data =
2010 May 16
1
problem with making multiple plots (geom_pointrange) in a loop (ggplot2)
Hello:
I am using R 2.10.1 I am trying to make multiple scatter plots with ggplot2, using a for loop to select
only certain entries in a dataframe. Here is my code:
for(i in 1:length(ganges_subbasin[,1] )){
subbasin_select <- as.character(ganges_subbasin[i, 2])
#print(subbasin_select)
subbasin_select <- as.character(ganges_subbasin[i, 2])
p <-
2010 Aug 12
2
drawing dot plots with size, shape affecting dot characteristics
Hi all,
I'm interested in doing a dot plot where *both* the size and color (more
specifically, shade of grey) change with the associated value.
I've found examples online for ggplot2 where you can scale the size of the
dot with a value:
http://had.co.nz/ggplot2/graphics/6a053f23cf5bdfe5155ab53d345a5e0b.png
Or scale the color with the value:
2005 Feb 18
0
Time to beg on my knees for help!!!
Specs: Fedora Core 3. Dual P3 600 (Dell PEdge 1300) SCSI Disks
1x X100P (channel 1)
1x TDM20 (channels 2+3)
1x Knockoff X100P (channel 4)
I am looking to have all local and all toll free calls go outbound through
the Copper line, and all long-distance and international to go out through
the Vonage line. This way I can eliminate LD on my home line, and pay
minimal LD charges through
2009 Mar 20
1
ggplot2: specifying legend titles
I am trying to specify a legend title to be other than the variable
name, but I find that the legend splits because scale_shape() takes
effect but scale_colour() does not. Can someone spot my error?
Here's some toy code that produces the problem on my system (R2.8.1,
windows, today's CRAN package updates):
library(ggplot2)
a <- sample(letters[1:5],100,replace=T)
b <-
2023 May 31
1
scale_colour_viridis en ggplot2
De acuerdo a Bard;
? scale_colour_viridis_d: Esta función utiliza la paleta de colores "viridis" en una escala continua, donde los colores varían de forma suave y continua. Es adecuada para representar datos en los que se desea resaltar las variaciones sutiles en los valores de la variable.
? scale_colour_viridis_c: Esta función también utiliza la paleta de colores
2009 Feb 25
1
Computing sd across an array with missing values
Dear help, suppose I have this array and want to compute sd aross rows and
columns.
p <- array(c(1:5, rep(NA, times = 3)), dim = c(5, 5, 3))
apply(p, 1:2, sd) fails because sd requires at least 2 numbers to compute sd
apply(p, 1:2, sd, na.rm = TRUE) fails for the same reason
I crafted my own function that does what I want
sd_fun <- function(i){
if(sum(!is.na(i))==0){
temp.sd <- NA
2013 Mar 07
3
ggpliot2: reordering of factors in facets facet.grid(). Reordering of factor on x-axis no problem.
Hi everyone (again),
before you all start screaming that the reordering of factors has been
discusse on several threads and is not particular to ggplot2, hear me out.
I can easily reorder my x-axis factor in facet.grid() in ggplot2. What I
cannot reorder are the factors represented on the strips. I can see that the
graphs are changing, so I am afraid of what it is I am doing. Why is ggplot2
2008 Jun 10
1
Sweave, ggplot2 and two-page figures
I am using Sweave to generate a document in which ggplot2 figures are
embedded. I am using the following code in a particular plot within a
subfloat environment:
<<qplotARbosreg, echo = FALSE, fig = TRUE>>=
print(qplot(bosday2, Arday2, data= arbostimearonlyNArm,
colour=factor(bos2), shape=factor(bos2), size=factor(cumARscore),
position="jitter", main="Days to BOS by
2008 Nov 17
1
ggplot2: using more than 6 symbols
I'm trying to plot multiple lines using different colours/symbols to
distinguish them. If I try to plot more than 6 lines, I get an error:
> ggplot( dat, aes(x=time,y=value,group=variable,shape=variable) ) +
geom_line()
Error: scale_shape can deal with a maximum of 6 discrete values, but
you have 9. See ?scale_manual for a possible alternative
I find this slightly confusing, as
2009 Jul 23
1
tweak a bit the legend wiht ggplot2
Hi all,
I've this ggplot2 graph
(http://www.4shared.com/file/120101043/f3e9350/isotherm.html).
I'd like to tweak the legend for the adsorbent part. I'd like to have full
square of the colors instead of the full circles.
I guess that I've to work on the scale_color_hue or fill somewhere but I
haven't found my way yet.
Here is my code to get the graph:
2002 Jun 12
4
table problems
dear helplist,
my student has fifty trees, numbered one to fifty, and a vector
recording which tree a certain possum slept in on 12 nights.
R> c
[1] 3 14 17 22 26 26 17 40 43 25 46 46
R>
Thus it slept in tree #3 on Monday, then tree #14 on Tues, and so on.
I wish to test the null hypothesis that the animal chooses trees
randomly; try
R> table(c)
c
3 14 17 22 25 26 40 43 46
1 1
2008 Nov 04
1
ggplot2 scatterplot matrix
#question is below data
library(ggplot2)
d <- (structure(list(Site = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 2L,
2L, 2L, 2L, 2L, 2L, 3L, 3L, 3L, 3L, 3L, 3L, 4L, 4L, 4L, 4L, 4L,
4L, 5L, 5L, 5L, 5L, 5L, 5L, 6L, 6L, 6L, 6L, 6L, 6L, 7L, 7L, 7L,
7L, 7L, 7L, 8L, 8L, 8L, 8L, 8L, 8L, 9L, 9L, 9L, 9L, 9L, 9L, 10L,
10L, 10L, 10L, 10L, 10L, 11L, 11L, 11L, 11L, 11L, 11L, 12L, 12L,
12L, 12L, 12L), .Label =
2023 May 31
2
scale_colour_viridis en ggplot2
Hola a todos:
Alguién me podría explicar cuales son las diferencias entre las diferentes
escalas de viridis en ggplot2, es decir en qué se diferencian
scale-colour_viridis_d de scale_colour_viridis_c, scale_colour_viridis_b.
Y cual es la diferencia entre scale-fiil-viridis_d de scale-fill_viridis_c
y de scale_fill_viridis-b.
He estado buscando la diferencia en internet y no he encontrado nada al
2009 Apr 10
1
png with ggplot on windows xp
Hi Group,
I posted this question on the ggplot list and was advised to try here
also. The code
below produces a plot as a png and pdf. The pdf looks great, and I cannot
make the png look this way. I've tried various combinations of
height, width, and dpi, but it has not worked out so
far. Any suggestions to make the png look like the pdf? I received a
response that
the problem does not occur
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:
2009 Jan 17
10
Cucumber Scenario Outlines Output Insufficient
I''m having problems knowing what a scenario outline I''ve created is doing.
In particular I have no idea about what steps are being matched when the
outline is run so when I break something I can''t find out what is wrong. Is
there any progress on getting better output for scenario outlines.
TIA
Andrew
-------------- next part --------------
An HTML attachment was
2008 Aug 20
44
GPL PV drivers for Windows 0.9.11-pre12
I''ve just uploaded 0.9.11-pre12 of the GPL PV drivers for Windows.
Since -pre10 (and -pre11) I''ve fixed a heap of crashes that were
plaguing xennet under load, and also rewritten the interrupt/event
distribution logic to improve performance.
Under windows 2003 I can now get network speeds of 1-2Gbit/second TX and
600Gbit/second RX, which is considerably better than I was
2008 Aug 20
44
GPL PV drivers for Windows 0.9.11-pre12
I''ve just uploaded 0.9.11-pre12 of the GPL PV drivers for Windows.
Since -pre10 (and -pre11) I''ve fixed a heap of crashes that were
plaguing xennet under load, and also rewritten the interrupt/event
distribution logic to improve performance.
Under windows 2003 I can now get network speeds of 1-2Gbit/second TX and
600Gbit/second RX, which is considerably better than I was