Displaying 20 results from an estimated 1200 matches similar to: "gplot problems with faceting"
2007 Nov 30
1
formula substitution by its calculated value
Dear R_Users,
I am confronted to a technical issue that I wouldn't even know how to start to handle and where to look at. It is about data manipulation in a dataframe and value substitution
Imagine I have a matrix describing a set of chemical equations.
Colnames are Components names and Rownames are Reaction names
Each cell in that matrix corresponds to the stoechiometric coefficient to the
2007 Mar 08
2
sending a vector of characters as arguments for a function
Dear all,
It seems to be a recurrent problem to me and I am asking your help to
get over it once for all ...
My idea is :
I have variables C_1, C_2, C_3 ... that corresponds to vectors of size
n, and I would like to cbind them.
I get a vector of their names using : temp<- ls(pat="C")
And I like to find a way to use this vector temp as an argument to
cbind.
2009 Sep 21
1
RODBC : using and passing queries that use " in some arguments
Dear R users,
I am trying to connect R to data that is in a Access Database but I have problem with the construction of queries using special characters.
I am using RODBC package.
The following is working :
> MyQuery<-paste("SELECT first( (DateHeure) ) , avg(NNO3_AT322_OUT_moy) AS Cond FROM Colonne_3 ")
> Col3<-sqlQuery(con, query=MyQuery)
> Col3
2008 Mar 04
1
qplot (ggplot2) faceting histogram with missing values
Hi,
I've run into a difficulty with qplot function (in the ggplot2
package). I can facet histograms even when the faceting variable
contains missing values, but only so long as the faceting variable is
not a factor.
Example:
y1 <- rnorm(10)
x1 <- c(rep(1,5), rep(2,4), NA)
x2 <- factor(c(rep(1,5), rep(2,4), NA))
library(ggplot2)
qplot(y1, geom = "histogram", facets =
2011 Feb 16
1
Faceting article
Hi,
I've been involved in developing a fairly complex site at
http://tilt.ft.com recently, and have acquired an unhealthy interest in
faceting. I couldn't find any good non-academic guides to faceting
strategy on the web, so I thought I'd have a stab at writing one.
I'm not completely happy with it, but it's been sitting in my drafts for
long enough that I thought it
2008 Oct 13
1
ggplot faceting like lattice | variable
I would like to be able to do the xyplot in ggplot below. I read in
the archive that Hadley was working on this for the next release, and
I can not find the documentation (Aug. 23rd).
River.Mile <- c(215 ,202, 198, 190, 185, 179, 148, 119, 61)
Cu <- rnorm(9)
Fe <- rnorm(9)
Mg <- rnorm(9)
Ti <- rnorm(9)
Ir <- rnorm(9)
r <- data.frame(River.Mile, Cu, Fe, Mg, Ti, Ir)
z <-
2010 Aug 28
1
Matchspy and faceting
Have been working recently on a site that classifies posts using tags in
taxonomies, so a post about the Oil spill in the Gulf of Mexico might be
tagged 'Subscribers only' (access level), 'Barack Obama' (person), 'Tony
Hayward' (person), 'BP' (company), 'Transocean' (company), 'Gulf of
Mexico' (location).
With some advice from Richard Boulton I
2010 Sep 11
1
Setting scales for ggplot2 with facets
Faceting in ggplot2 seems to permit different scales for different
facets, but I fail
to see how one could control ylim and xlim ranges for each facet
separately.
For instance, I would like to set the ylim = c(0,10) for facet "A"
and ylim = c(42,102) for facet "B". Since the data is out of these
ranges,
setting facet_grid(factor ~ ., scales = "free_y") does not
2013 Jan 21
1
Faceting in ggplot with 3 series in each plot
I have created a graph with basic R plot with 2 rows and 3 columns. With
the basic plot feature of R I had to write several lines of code to come up
with the graph https://www.dropbox.com/s/f7d6ei6krtcrtti/hello.png
I was wondering whether we can plot multiple series in each plot using
ggplot as created in the above link. If anyone could give me any suggestion
then I could try on ggplot.
I
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
2009 Oct 06
1
ggplot2: mapping categorical variable to color aesthetic with faceting
Hello Again... I?m making a faceted plot of a response on two categorical
variables using ggplot2 and having troubles with the coloring. Here is a
sample that produces the desired plot:
compareCats <- function(data, res, fac1, fac2, colors) {
require(ggplot2)
p <- ggplot(data, aes(fac1, res)) + facet_grid(. ~ fac2)
jit <- position_jitter(width = 0.1)
p <- p +
2007 Oct 30
1
Facets and/or Nested Describes
I have to confess that I did not know about facets before reading
Ashley Moran''s post:
http://aviewfromafar.net/2007/10/21/quick-and-dirty-facets-in-rspec-trunk
Not knowing about the facets solution, I made a couple of feature
requests for nested describes:
http://rubyforge.org/tracker/index.php?func=detail&aid=14980&group_id=797&atid=3152
2008 Jun 17
1
ggplot facet spacing, wrapping
I'm running into some problems with the spacing of some faceted ggplot plots.
I have a number of time series faceted to be one above another, but the
scale labels of the y axes all clobber each other at the bottom/top of each.
for example, try:
qplot(x, y, data = data.frame(x = 1:10, y = 1:10, size = 1:10), facets =
size ~ ., size = size) + scale_x_continuous(breaks = 1:10) +
2011 Nov 08
3
ggplot2 reorder factors for faceting
Dear List
I am trying to draw a heatmap using ggplot2. In this heatmap I have faceted my data by 'infection' of which I have four. These four infections break down into two types and I would like to reorder the 'infection' column of my data to reflect this.
Toy example below:
library(ggplot2)
# test data for ggplot reordering
genes <- (rep (c(rep('a',4),
2008 Mar 25
2
ggplot2 - facetting
Dear All,
After having overcome the issue of legends (thanks, Thierry, once
more), I am trying to use facetting, but here also I can not find how
to do this. I do not want to use qplot, but rather the more flexible
options. However, it seems I am doing still something pretty stupid,
because I always get an error, even if it seems I am doing everything
like the examples.
My code is below.
2011 Oct 11
1
controling text in facets (ggplot2)
Hi R-helpers!
Here is my problem:
I have a graph with 3 different facets where there are 3 different
regression line. My goal is to mention separately in each facet each
equation that describes my lines.
So far, I managed to add a line and the same equation to all my facets but
that's not unfortunately what I want.
Is there a way to do that? Any suggestion would be gladly welcome!
Thanks
2009 Nov 22
1
"Over-coloring" facets on persp() plot
Dear R Community:
Recently, I have managed to plot some really useful graphs of my
research data using persp(). I have even figured out how to overplot
rectangular regions (corresponding to submatrices) with a different
color. This is accomplished by using par(new=T). I am now searching
for a way to "highlight" a set of (possibly non-contiguous) facets with
a specific color,
2012 Apr 23
1
filter by facets and objective c version
1. How do I perform filter by facets using the C++ api?
2. Has anyone ported xapian to objective C
thanks
Amish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20120423/1d1c58dd/attachment.html>
2013 Oct 12
2
Order of factors with facets in ggplot2
Hello,
I'd like to produce a ggplot where the order of factors within facets is
based on the average of another variable.
Here's a reproducible example. My problem is that the factors are ordered
similarly in both facets. I would like to have, within each facet of `f1',
boxplots for 'x' within each factor `f2', where the boxplots are ordered
based on the average of x
2008 Feb 27
1
how to specify ggplot2 facet plot order
Hi, new to R and ggplot2. I've been trying to get a facet plot in which the
order of the facets is as I require, rather than ordered numerically,
alphabetically, by Roman numerals, mean (answers to these were posted here
after much searching). Here's some test code to demonstrate what I get.
series = c('C2','C4','C8','C10','C15','C20')
ids =