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
0
votes
1 answer

Multiple lines in facet labels using equalities with greek characters - ggplot2

I am trying to label my facets in a facet grid plot using Greek character equalities, with a line break in between the two equalities. The code I have used to generate this is the following: set.seed(1) …
tinder
  • 35
  • 7
0
votes
0 answers

How to plot more than 50 discrete values of category variable using ggplot2?

I have data set like below: level Year Priority Avg_Effort_in_Hrs Total_Effort_in_Hrs A 2015 Medium 33.6 34 B 2016 Low 34.6 67 C 2014 High 45.6 …
niranjan
  • 269
  • 3
  • 5
  • 13
0
votes
0 answers

Facet search guideline for using unique attribute as facet attribute

What does the facet search design guide line say about using an unique attribute of the indexed item as configured one of the facet attribute? I am looking for some documented proof. In my opinion, this does not make sense. Facet on unique attribute…
0
votes
1 answer

Solr 6 Facet range query over streaming API

While migrating from Solr legacy faceting to Solr streaming API, how to implement the below parameters: &facet = true &facet.range = {!key=age_ranges}age &f.age.facet.range.start = 0 &f.age.facet.range.end = 100 &f.age.facet.range.gap =…
Yauza
  • 180
  • 1
  • 13
0
votes
2 answers

ggplot facets of plots of sum of data, rather than data itself

I'm trying to produce a plot of sums of a particular variable over time by facet in ggplot. I'm working on a school assignment, so I will use the built-in mpg data set for this question rather than the actual data. One task is to plot the…
Rob Creel
  • 323
  • 1
  • 8
0
votes
2 answers

Arranging data for two facet R line plot

I am trying to make a two facet line plot as this example. My problem is to arrange data to show desired variable on x-axis. Here is small data set I wanna…
Shakir
  • 343
  • 5
  • 23
0
votes
1 answer

ElasticSearch Facets Terms Query float precision

I have some problems with the facets terms query (with ElasticSearch 1.7.0), all float values are right stored in the database and in the elasticsearch bulk too, but when I request the data I get the values like that "2.99000000954". The strange…
keupsonite
  • 399
  • 3
  • 15
0
votes
1 answer

Algolia for Wordpress: In creating a filter facet widget, how do I sum values from multiple attributes?

I'm using Algolia search within Wordpress and I'm attempting to create a facet that will allow the user to filter results based on a numerical range. The issue is that I need to get the sum of a number of attributes for comparison. For instance,…
0
votes
1 answer

Deleting an entire row of facets of unused factor level combination

I want to remove the 2nd row of facets from my plot below because there is no data for that factor combination. library(ggplot2) library(grid) set.seed(5000) # generate first df df1 = data.frame(x=rep(rep(seq(2,8,2),4),6), …
zoneparser
  • 110
  • 9
0
votes
1 answer

Displaying a subset of features in a facet of a multi-layer plot

I'm trying to generate a multi-layered plot where the points in one layer gets displayed only in a fraction of the facets created using data from another layer. In the code below, the points in red are either x1 or x2 (just like the row labels of…
zoneparser
  • 110
  • 9
0
votes
1 answer

Geom tile white space issue when the x variable is spread unevenly accross facet grids

I'm trying to produce a heat map of gene expression from samples of different conditions, faceted by the conditions: require(reshape2) set.seed(1) expression.mat <- matrix(rnorm(100*1000),nrow=100) df <- reshape2::melt(expression.mat) colnames(df)…
dan
  • 6,048
  • 10
  • 57
  • 125
0
votes
2 answers

Stitch facets in ggplot

I have 2 data sets I'd like to ggplot side by side so they share the y-axis. I thought of using ggplot's facet_wrap for this but ned to find out how to stitch them together. This is what I have so far: df.1 <-…
dan
  • 6,048
  • 10
  • 57
  • 125
0
votes
1 answer

elastic search facet to aggregation

Need help transforming this query from using facet_filter to using aggs in ES 2.0 since facets are no longer supported in ES 2.0 and above. { "facets": { "format": { "terms": { "field": "documentary_tag_id", "size": 10, …
0
votes
1 answer

Changing Hover in ggplotly facet_grid

I have a dataframe as follows: DATE<- as.Date(c('2016-11-17','2016-11-17','2016-11-17','2016-11-17', '2016-11-18', '2016-11-18', '2016-11-18','2016-11-18')) TEST<-c('test', 'test','test','test','test','test','test','test') TYPE<-c('type1',…
nak5120
  • 4,089
  • 4
  • 35
  • 94
0
votes
1 answer

Faceted search / Layered navigation, result filtering

I'm using SOLR for getting my facets, everything works fine, even the filter queries are correct. I am struggling with the php part for the filter display. The facets look like this with the active filters. But I want to achieve these…
Szabi Zsoldos
  • 351
  • 6
  • 17
1 2 3
99
100