Questions tagged [facet]

Facetting is a technique for data visualization which makes it easier to compare groups inside your data.

Facet

In the ggplot2 package for R, creating subplots for groups of data is called facetting. When visualizing data, facetting allows groups of data to be rendered alongside each other in order to make it easier to compare them. A facetted plot can be made with facet_wrap() and facet_grid().

Resources

1763 questions
7
votes
1 answer

ArangoDB Faceted Search Performance

We are evaluating ArangoDB performance in space of facets calculations. There are number of other products capable of doing the same, either via special API or query language: MarkLogic Facets ElasticSearch Aggregations Solr Faceting etc We…
Roman Kuzmik
  • 151
  • 5
7
votes
1 answer

How to use facet_grid() with geom_histogram()

I tried using the facet_grid() for the first time. I plotted histograms with my own data, and the distribution seemed inaccurate when I counted the boxes manually on the graph. I replicated my code using the mtcars data, and the problem seemed to…
naco
  • 373
  • 1
  • 3
  • 14
7
votes
2 answers

Change aesthetics of nested facet in ggplot2

I want to use nested panels in ggplot2 but the names of the two panels must be on opposite sides of the plot. Here is a reproducible example: library(ggplot2) library(data.table) # data for reproducible example dt <- data.table( value = c("East",…
rafa.pereira
  • 13,251
  • 6
  • 71
  • 109
7
votes
4 answers

Faceted Project Eclipse environment

Even if I have checked this post and try the solution on it, the problem is still there. Java compiler level does not match the version of the installed Java project facet. Project-name Unknown Faceted Project Problem (Java Version Mismatch)
Blanca Hdez
  • 3,513
  • 19
  • 71
  • 93
7
votes
2 answers

Separate palettes for facets in ggplot facet_grid

Question How can I use a different color palette for each facet? Ideally I would like to have a generic legend in gray to serve as a reference. I'm working on a visualization using ggplot's facet_grid. The layout is fine, but I would like to use a…
Nancy
  • 3,989
  • 5
  • 31
  • 49
7
votes
2 answers

How to set different breaks and labels on the scales when facetting data in ggplot2?

Consider the following code: library(ggplot2) data = data.frame(x = c(1, 2, 3, 4, 5, 6), label = c("foo", "bar", "bar", "baz", …
Vitor Baptista
  • 2,016
  • 1
  • 23
  • 28
7
votes
1 answer

How to add a label for a vertical line with legend in ggplot2

R 3.1.2/ggplot2_1.0.0/Windows7 How can one add 2 vertical lines with legends in a faceted graph without them changing the linetype? In the following example i can't get the legends to appear as I would imagine them to (two solid lines and a adecuate…
Panchito
  • 337
  • 1
  • 3
  • 12
7
votes
2 answers

How to position annotate text in the blank area of facet ggplot

How to annotate some text in the blank space within a odd numbered faceted ggplot. Lets have a faceted ggplot with data as below with with 2 rows and 2 columns. So there is blank space in place of 2 row, 2nd column. df<- data.frame(Ara =…
Cirrus
  • 638
  • 3
  • 13
  • 26
7
votes
2 answers

How well does Solr scale over large number of facet values?

I'm using Solr and I want to facet over a field "group". Since "group" is created by users, potentially there can be a huge number of values for "group". Would Solr be able to handle a use case like this? Or is Solr not really appropriate for…
Continuation
  • 12,722
  • 20
  • 82
  • 106
7
votes
1 answer

What is the difference between composite:insertFacet and composite:renderFacet?

I am using GlassFish 3.1.2 and trying to use composite:insertFacet in a composite component, but the HTML Markup is not generated when using my CC. The same code works fine when I use composite:renderFacet, but I want to understand why…
Tarik
  • 4,961
  • 3
  • 36
  • 67
7
votes
1 answer

Adding sub-tables on each panel of a facet ggplot in r

I am trying to create a complete set of plots using facet_wrap from the ggplot2 package in R. As a simplified example I used a subset of the dataset mpg included in ggplot2 library(plyr) library(ggplot2) library(gtable) library(gridExtra) myData =…
7
votes
1 answer

Different geom_rect() objects for facets

I have a dataframe which I've used to create a ggplot object faceted into three separate plots. max_24h_lactate_cpet.long First_24h_Lactate_Max, Lactate_Above_Threshold, Metric, Value 2.3, High, …
s_boardman
  • 416
  • 3
  • 9
  • 27
7
votes
1 answer

Ggplot2 plot mean of subset on facet instead global mean

I would like to get the facet subet mean (x + y axis) of the subset with ggplot. However, I get the mean of the data and not the subset one. I don't know how to solve this issue. hsb2<-read.table("http://www.ats.ucla.edu/stat/data/hsb2.csv",…
S12000
  • 3,345
  • 12
  • 35
  • 51
7
votes
1 answer

Solr Facetting - Showing First 10 results and Other

I am implementing a solution in Solr where I have a lot of values in my facet. As opposed to displaying a long list of values(facets) down the side of my page I want to display the top 10. And also have one for other. For instance I would be…
Mark
  • 2,522
  • 5
  • 36
  • 42
7
votes
2 answers

Maven vs. Eclipse Project Facets for Java EE 6

I have created Maven projects inside Eclipse with these archetypes: ejb-javaee6 webapp-javaee6 The projects were created without facets. Does it make sense to convert such Maven projects into faceted form? Which facets would be helpful and which…
StaticNoiseLog
  • 1,370
  • 17
  • 27