Thank you. That approach could work and I might use it, but a
complication is that the 100 facets must be in a specified order and
that order mixes charts of type A and B/C in an unsystematic way. I
suppose I could write two functions, use them to create all the plots
and then join them togethe
Hello,
I hadn't understood the problem, sorry.
The problem are the bar plots, ggplot is plotting one in the "A" facet.
And since there is nothing to plot, the bars start at 0.
A hack is to plot facet "A" separately and then combine the plots with
one of several ways to combine ggplot plots. B
Thanks for the suggestion, but this does not give me what I want. Each
chart needs its own unique scale on the y-axis.
Philip
On 2024-08-01 15:08, Rui Barradas wrote:
Às 19:01 de 01/08/2024, p...@philipsmith.ca escreveu:
I am asking for help with a ggplot2 program that has facets. There are
Às 19:01 de 01/08/2024, p...@philipsmith.ca escreveu:
I am asking for help with a ggplot2 program that has facets. There are
actually 100 facets in my program, but in the example below I have
limited the number to 3. There are two kinds of charts among the facets.
One kind is a simple line plot
I am asking for help with a ggplot2 program that has facets. There are
actually 100 facets in my program, but in the example below I have
limited the number to 3. There are two kinds of charts among the facets.
One kind is a simple line plot with all of the y-values greater than
zero. The facet
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible cod
Perhaps you had forgotten to use header=TRUE when you read the data in.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Thanks, Jeff. I tried this previously by using a header in my data file
(and 'header=TRUE'), but for some reason, that did not seem to work.
Creating a 'names' vector as you suggested did solve the problem, though.
Thank you!
Loren
2015-03-24 23:19 GMT-04:00 Jeff Newmiller :
> You MUST put al
You MUST put all data you plan to refer to into a data frame when using ggplot.
There are a couple of ways you could do this... the easiest is to put a header
line in the data file with column names. Or, you can assign a vector of new
names to the names of the data frame.
names( hetshoms ) <- c
Hello all,
I am having a perplexing problem trying to use facet_wrap in ggplot, with
both my real dataset and a simplified dummy dataset. I am trying to plot
heterozygosity across the genome for multiple individuals, with each
chromosome shown separately.
My dummy data:
chr1123000 124000 2
Try this,
qplot(outcome, counts, data=d.AD, facets=.~ treatment)
HTH,
baptiste
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide c
>Hello,
>
>I'm trying to introduce myself to ggplot2. I'm using syntax from the help
>file, but pasting in my own data. I don't understand the error message I'm
>getting. Can anyone clue me in? A Google search of this error statement
>didn't return anything I could recognize as useful.
>
12 matches
Mail list logo