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
13
votes
2 answers

Solr exclusion on stats.field?

One can tag specific filters and exclude those filters when faceting. This is generally needed when doing multi-select faceting. Is something similar possible for the stats.field? stats.field={!ex=foo}price // does not work I have a price slider…
rkusa
  • 4,792
  • 1
  • 22
  • 28
13
votes
3 answers

Filtering Redis Hash Entries

I'm using redis to store hashes with ~100k records per hash. I want to implement filtering (faceting) the records within a given hash. Note a hash entry can belong to n filters. After reading this and this it looks like I should: Implement a sorted…
Paul
  • 655
  • 1
  • 8
  • 19
13
votes
1 answer

ElasticSearch additional facet data

I have configured my Elastic Search implementation to facet the results by an id in the mapping and when I display that facet to the user I need to be able to show the human-readable name that represents it. The data I need is all present in the…
Nathan Taylor
  • 24,423
  • 19
  • 99
  • 156
13
votes
5 answers

solr faceted search - how do I specify multiple fields on the Solr Query UI?

I'm a newbie to solr and tying my hands at solr. Can some one here please explain how to specify multiple facet fields for a given search. I'm using the Solr Admin UI/ query ink and it allows me to specify only one field. I would however like to…
Chetya
  • 1,267
  • 1
  • 17
  • 31
12
votes
2 answers

How to let contain multiple components? It shows only the first

I use to create a table header and I want a symbol beside it. However, it doesn't seem to work well. The symbol is not rendered. JSF:
Roger.H
  • 343
  • 1
  • 4
  • 18
12
votes
2 answers

Creating a multiple column facet function

I am trying to create a facet_multi_col() function, similar to the facet_col() function in ggforce - that allows for a facet layout with a space argument (which is not available in facet_wrap()) - but over multiple columns. As in the last plot below…
guyabel
  • 8,014
  • 6
  • 57
  • 86
12
votes
1 answer

ElasticSearch post_filter and filtered aggregations not behaving the same way

I've been spending a whole week on this with no hope of solving it. I am following this (quite old) article on e-commerce search and faceted filtering, etc., and it's working good so far (the search results are great and the aggregations work great…
Cristian Cotovan
  • 1,090
  • 1
  • 13
  • 23
12
votes
2 answers

How to use different font sizes in ggplot facet wrap labels?

I want to create two different sizes of text in the labels of my facet wrap. For example: Species X (size 14) Total catch (n=133) (size 12) test <- read.csv(paste0(path, "Costello Artvgl2 for Stack.csv"), sep = ";", dec = ",", header =…
Papa Luzie
  • 173
  • 1
  • 2
  • 7
12
votes
2 answers

Algolia facet filter by empty/null value

Is there a way to filter hits by a property's value that is either null or an empty string? i.e., show me all objects that do not have an author facetFilters=author:null facetFilters=author:'' Or include it in a list of OR values? i.e., show me all…
George Hess
  • 639
  • 1
  • 8
  • 15
12
votes
3 answers

Multiple boxplots placed side by side for different column values in ggplot

I have read different posts like this and this but my problem has a small variation. I have a df like this ID <- c("DJ45","DJ46","DJ47","DJ48","DJ49","DJ53","DJ54","DJ55","DJ56","DJ57") Tool <- c("Tool_A", "Tool_A", "Tool_A", "Tool_A", "Tool_A",…
Sharath
  • 2,225
  • 3
  • 24
  • 37
12
votes
3 answers

'Labels on top' with facet_grid, or 'space option' with facet_wrap

facet_grid allow me to size each facet width according to number of items on y axis (space argument): df <- data.frame(label = c("Variable one", rep("Variable two", 2), rep("Variable three", 3)), item = c("A", "B", "C", "D", "E", "F"), value =…
eusebe
  • 362
  • 2
  • 7
12
votes
2 answers

R: Reorder facet_wrapped x-axis with free_x in ggplot2

I'm trying to use reorder in a facet-wrapped plot that also uses scales = free_x in ggplot2, but the reorder function isn't reordering the x-axis properly. Here's what I'm running: library(ggplot2) df <-…
duhaime
  • 25,611
  • 17
  • 169
  • 224
12
votes
3 answers

Remove some of the axis labels in ggplot faceted plots

I have created a plot like the one here with ggplot2 package and facet_wrap function, and I would like to suppress some of the x-axis text to make it more legible. For example, here it would be more legible if the x-axis scales appeared only on…
Pop
  • 12,135
  • 5
  • 55
  • 68
12
votes
4 answers

Multiple colors in a facet STRIP background in ggplot

Update 2023: There is now a great package, ggh4x by @teunbrand See this answer to the related the question Q: In a ggplot, how can we modify the colors of the facet background based on the group. Can there be more than one color for facet…
Ricardo Saporta
  • 54,400
  • 17
  • 144
  • 178
12
votes
5 answers

Solr and facet search

Does facet searching come built in when you setup your schema or do you have to do some things to set this up? Does it basically work out of the box on all the fields that you have setup to be sortable? then you just use the fq query syntax and it…
Blankman
  • 259,732
  • 324
  • 769
  • 1,199