Displaying 20 results from an estimated 1000 matches similar to: "overlay two facet_grid"
2016 Apr 20
0
overlay two facet_grid
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
Overlaying aesthetics is possible. Overlaying graphs is not. Without sample data, concrete examples will be unlikely to appear, so read the above link and pay attention to the dput function.
--
Sent from my phone. Please excuse my brevity.
On April 20, 2016 3:01:43 PM PDT, "ch.elahe via R-help"
2016 Apr 16
3
a replace for subset
Hi,
I have a data set (mydata), which a part of this is like the following:
'data.frame': 36190 obs. of 16 variables:
$ RE : int 38 41 11 67 30 18 38 41 41 30 ...
$ LU : int 4200 3330 530 4500 3000 1790 4700 3400 3640 4000 ...
$ COUNTRY : Factor w/ 4 levels "DE","FR","JP", "FR"?
$Light
2016 Apr 16
1
a replace for subset
-Thank you James, well the problem of my type of data is that there can be many possible subsets and therefore plots, and I want to automatically generate them, and facet_wrap does not give me all the possible cases
On Saturday, April 16, 2016 6:01 AM, James C. Whanger <james.whanger at gmail.com> wrote:
Would facet_wrap or facet_grid give you what you want?
On Sat, Apr 16, 2016 at
2017 Dec 13
1
overlay two histograms ggplot
Hi all,
How can I overlay these two histograms?
ggplot(gg, aes(gg$Alz, fill = gg$veg)) + geom_histogram(alpha = 0.2)
ggplot(tt, aes(tt$Cont, fill = tt$veg)) + geom_histogram(alpha = 0.2)
thanks for any help!
Elahe
2016 Apr 16
0
a replace for subset
Would facet_wrap or facet_grid give you what you want?
On Sat, Apr 16, 2016 at 8:45 AM, ch.elahe via R-help <r-help at r-project.org>
wrote:
> Hi,
> I have a data set (mydata), which a part of this is like the following:
>
>
> 'data.frame': 36190 obs. of 16 variables:
> $ RE : int 38 41 11 67 30 18 38 41 41 30 ...
> $ LU
2012 Aug 07
2
label_wrap_gen question
Hi, all
I am trying to use the label_wrap_gen function in this website.
https://github.com/hadley/ggplot2/wiki/labeller
I tried to make a long name like this
Light and heavy good vehicles (diesel) -\nGVX
f2 = facet_grid(vehicle ~ ., labeller=label_wrap_gen(width=15))
eventually, I got something like this in my label...
*Light and heavy
good vehicles
(diesel) - GVX*
I suppose the
2012 Mar 18
2
Importing files
Hello,
I'm trying to import into R files that contain data downloaded from logger devices as files with the following formats:
.act
.lig
.trj
.trn
These files are essentially text files but use both tabs and commas as separators.
I've tried the function scan:
1) scan("filename.act", what=character(0)) returns only two columns from the original 5
2) scan("copia.act",
2009 Apr 21
1
joined R-today
Friends,
I am a newbie to R. Just installed and started with R. I installed netcdf
library (netcdf-4.0.tar.gz) and then ncdf package of R from CRAN with the
following command.
R CMD INSTALL
--configure-args="-with-netcdf_incdir=/usr/local/netcdf/include
-with-netcdf_libdir=/usr/local/netcdf/lib" ncdf_1.6.tar.gz
The installation was successful. But when i try to use ncdf inside R, i
2010 Nov 09
1
ggplot2: facet_grid with different vertical lines on each facet
Hello,
I am plotting many histograms together using facet_grid in ggplot2. However,
I want to then add a vertical line to each histogram, or facet, each of
which vertical lines are at different x-values.
The following example adds all vertical lines to each facet:
ggplot(data,aes(values)) + geom_histogram() + facet_grid(.~variable) +
geom_vline(xintercept=c(5,10,15))
How can I add a vertical
2009 Oct 02
1
ggplot2: proper use of facet_grid inside a function
Hello Again R Folk:
I have found items about this in the archives, but I?m still not getting
it right. I want to use ggplot2 with facet_grid inside a function with
user specified variables, for instance:
p <- ggplot(data, aes_string(x = fac1, y = res)) + facet_grid(. ~
fac2)
Where data, fac1, fac2 and res are arguments to the function. I have
tried
p <- ggplot(data,
2008 Jan 26
2
using facet_grid() from ggplot2 with additional text in labels
Hi
I am using ggplot2 at the moment and I must say it is definitely better
then ggplot - good work.
My problem is that I am using facet_grid() in the following way:
> p <- ggplot(ssq, aes(x=year, y=-log(ssq)))
> p + geom_point() + facet_grid(me*gi~cs*rz)
and it works nicely, except that I would like to have, in naddition to
the values of me, gi, cs and rz the name of the variable.
2009 Aug 11
1
ggplot2: override facet names in facet_wrap?
just a quick question (to which I suspect the answer is "no"):
does anyone know if, in the ggplot2 package, there's a way to
override the default names of the facets in facet_wrap (which
correspond to the levels of the factor used to facet)? I know
that I go back and change the levels of the factor, but it would
be convenient to be able to supply a vector of level names at
the time
2008 Jan 27
1
Putting frame around single panels in ggplot 2 and facet_grid()
Hi
I want to highlight two panels in a grid created with facet_grid() by
putting a box around it or usiong another background colour. Is this
possible, and if yes, how?
Thanks
Rainer
--
Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation
Biology (UCT)
Plant Conservation Unit
Department of Botany
University of Cape Town
Rondebosch 7701
South Africa
Tel: +27 - (0)21 650 5776 (w)
Fax:
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
2010 Oct 28
1
ggplot2: facet_grid with only one level does not display the graph with the facet_grid level in title
Hi All,
Here is the code that I'll be referring to:
p <- ggplot(wastran.data, aes(PER_KEY, EVENTS))
(p <- p +
facet_grid( pool.short ~ .) +
stat_summary(aes(y=EVENTS), fun.y = sum, geom="line") +
opts(axis.text.x = theme_text(angle = 90, hjust=1), title="Events
(15min.) vs. Time: Facet pool", strip.text.y = theme_text())
)
Now, depending on preceding
2008 Nov 22
2
ggplot2 - facet_grid and facet_wrap
Hello R users (and Hadley)
I have another question about ggplot2 :-)
(version 0.8)
`dat` <-
structure(list(D = c("a", "b", "c", "d"), G = c(1.51520888871520,
1.88812208268440, -6.60521862, 0.55968739), E = c(1.38888592256404,
1.39366168665589, 1.22509259382058, 1.36617701059296), I =
c(6.92634958902857,
6.94416045215158, 13.2179488828556,
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:
2017 Jul 26
2
fill out a PDF form in R
Hi all,
I would like to get ideas about how to fill out a PDF form in R and to know if it's possible or not. I could not find something helpful in Internet.
Does anyone know a good link for that or have experience in this?
Thanks for any help!
Elahe
2017 Jun 12
3
count number of stop words in R
You can define stop words as below.
data <- tm_map(data, removeWords, stopwords("english"))
Patrick Casimir, PhD
Health Analytics, Data Science, Big Data Expert & Independent Consultant
C: 954.614.1178
________________________________
From: R-help <r-help-bounces at r-project.org> on behalf of Bert Gunter <bgunter.4567 at gmail.com>
Sent: Monday, June 12, 2017
2017 Jun 12
3
count number of stop words in R
Hi all,
Is there a way in R to count the number of stop words (English) of a string using tm package?
str="Mhm . Alright . There's um a young boy that's getting a cookie jar . And it he's uh in bad shape because uh the thing is falling over . And in the picture the mother is washing dishes and doesn't see it . And so is the the water is overflowing in the sink . And the