Re: [R] R facets including two kinds of charts

2024-08-01 Thread phil
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

Re: [R] R facets including two kinds of charts

2024-08-01 Thread Rui Barradas
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

Re: [R] R facets including two kinds of charts

2024-08-01 Thread phil
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

Re: [R] R facets including two kinds of charts

2024-08-01 Thread Rui Barradas
À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

[R] R facets including two kinds of charts

2024-08-01 Thread phil
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