1,808 questions
5
votes
2
answers
114
views
ggh4x how to stretch strip across layers
I'm working on a facet_nested_wrap plot (see image below) where I happen to have one of the aspect (CENT) having only one level, as opposed to two, as in the other (TELO).
Is there a way to increase ...
1
vote
1
answer
67
views
Keep sorting order within faceted plot when some elements appear multiple times
I am trying to make a ggplot() using geom_bars() which are wrapped by ranking. I have multiple rankings, and on each place, more than one group can have the same ranking.
Here is my MWE:
data <- ...
3
votes
2
answers
100
views
panel spacing and columns split in nested facet
I'm working on the facet plot below; however, I have two main issues:
I can't properly set independent space values for the between chr* and the between G* facets e. g. I wish to set 0.1 for the ...
-1
votes
1
answer
60
views
Faceted mosaic plots with the same area scaling
I have data that has two logical variables (a treatment variable and an outcome variable) and one categorical variable. I want to use a mosaic plot to visualize the logical dimensions faceted by the ...
2
votes
0
answers
40
views
How to filter results for a single material in Algolia, excluding all others?
I’m working with Algolia and need to filter search results for a single material (e.g., "100% Cotton") while excluding any items that contain a blend of other materials (like "Cotton-...
0
votes
1
answer
333
views
How to facet plots by multiple variables and wrap plots in R
I have what I thought would be a simple problem that has been absolutely killing me: I have a group of people and I would like to plot ~5 metrics for each of them. Each metric is a function over time (...
1
vote
1
answer
107
views
Panels width/height depending on their text widgth/height with ggh4x::facet_nested()
I often do plots with ggplot and nested facets using facet_nested() from the ggh4x package. However, in some cases, I have somewhat long panel texts. In this case, all panels take the the longest ...
2
votes
1
answer
88
views
Move Facet label to the left to make space for legend [duplicate]
I am using facet_wrap and need to move the x axis table left and the y2 axis lable up to make room for my legend and was wondering if the is possible.
Below is my code and an image of what I am trying ...
1
vote
1
answer
82
views
How to use e_facet with e_funnel in R?
I'm working on R (version 4.4.2) I'm using the library echarts4r (version 0.4.5) to create a plot. I want to use e_facet to perform something like facet_wrap in ggplot2, splitting the plot into two ...
1
vote
1
answer
50
views
How to configure custom label for facet search?
I have configured a facet for my custom thesaurus, which works well. But I could not find a solution to display a custom name for the search facet. I have configured the facet through the UI. Here is ...
0
votes
1
answer
43
views
ggplot with two panels from different data frames [duplicate]
I really struggle with ggplot but can usually find what I need on this site or somewhere else. I think what I'm trying to do should be really simple but I can't get this to work. I have two data ...
0
votes
0
answers
39
views
tm_facets option as.layers = TRUE disabled in tmap v4?
The code below used to produce grid maps for each province and
a map where each province is its own layer respectively. Has the option "as.layers = TRUE" been disabled in tmap v4?
library(...
1
vote
1
answer
40
views
Joint Histogram and Boxplot Plot with Faceting
I want to visualize the distribution of a variable ('F3A7_1') by plotting a histogram, and right underneath it a boxplot (below the y-axis of the histogram or something). I also want to create this ...
0
votes
1
answer
43
views
Adding a X axis title to faceted ggballoonplot
I followed the code on this page to create balloon plots with ggballoonplot() using facet.by. I wanted to add an x axis title, so I followed what was recommended in the question asked here to which ...
0
votes
0
answers
46
views
Changing text direction in facet_nested panel
I am trying to change the text direction in a facet nested chart with three variables on the one panel, I have tried (with only 2 variables) strip.text.y.right and strip.text.y.left, no dice!
Ideally ...
-1
votes
1
answer
53
views
Independent value for y axis for each facet, but fixed for each sub-facet (R)
I am plotting n plots next to each other using facet_nested_wrap, and i would like that the y-axis por each subfacet is fixed according to the y-axis of the principal facet, but that each principal ...
1
vote
2
answers
59
views
reorder_within() mysteriously not ordering within facets for my data
I must be missing something simple, but for the life of me I cannot identify why I am not able to reproduce the behavior of tidytext::reorder_within() on my own data.
All works fine for the iris data. ...
0
votes
1
answer
85
views
Change the strip text background color based on a grouping variable that's not used in facet_wrap (ggplot2)?
I am wondering if there are any ways to change the background colour of strip text by the grouping variable (group2) which is not in the faceting variable (group1) in ggplot. For example, in the plot ...
0
votes
2
answers
102
views
Running a sub-pipeline inside a group in mongodb
I have a bunch of event data which is identified by uid and timestamp. I have a number of aggregation pipelines which will calculate statistics for each user. These work if I run them one at a time, ...
1
vote
2
answers
196
views
Interactive facet plot with ggiraph: not responding to mouse-over
My aim is to generate an interactive combined line plot and facet dot plot in R. Moving the mouse over one of the lines should highlight it together with the corresponding dot plot facet, and vice ...
0
votes
1
answer
26
views
Coveo number field being indexed as decimal instead of integer
In Sitecore I have a custom computed field that needs to be an integer in Cove, but instead is being processed as a decimal. I am not sure what I have wrong in the configuration
public class ...
2
votes
1
answer
64
views
Change position of facet label fro right to top in ggplot2 in R
I want to change the facet label position from right to top. How can I do it in ggplot2 under the gglikert()
function ?
library(tidyverse)
library(ggstats)
likert_levels <- c(
"Strongly ...
0
votes
1
answer
316
views
Facet Atlas Search returning the $$SEARCH_META using C# MongoDB.Driver
I would like to do a Facet Search that returns the "$$SEARCH_META" based on the documentation (https://www.mongodb.com/docs/atlas/atlas-search/facet/). A snippet of the search definition ...
2
votes
1
answer
116
views
Hiding facet row axis in Altair chart
I'm using a faceted chart in Altair in order to split a lengthy timeline into multiple rows.
My initial dataset is a pandas dataframe with "Start" and "End" timestamp columns and a ...
0
votes
1
answer
39
views
Facet nested with mathematical symbols and text with spaces in labels (ggplot2)
I want to create a nested_facet plot but the labels contain a less or equal sign and a greater or equal sign and spaces. The following is an example:
df <- iris
df$factor <- factor(rep(c('Values ...
0
votes
1
answer
88
views
Preserve x-axis breaks and element_markdown specs on each facet in ggplot2 with facet_wrap and free_x
Say I have the final_df data frame in the MWE below, and I make the plot below it, using a custom scale_x_continuous and element_markdown from ggtext.
myseq <- "AGAATATTATACATTCATCT"
set....
0
votes
1
answer
100
views
Facetting the survival plot using ggsurvplot_facet gives error
I am analyzing EHR data of diabetic patients. The objective is to perform time-to-event analyses to explore whether switching therapies at certain HbA1c thresholds leads to better long-term outcomes, ...
2
votes
0
answers
78
views
How to adjust a WPGridbuilder Facet to show backordered product on a Woocommerce site
By default, WPGridbuilder's "Stock" filter does not consider "On Backorder" as a stock status by WooCommerce, it considers it as "In Stock".
I want to create a facet ...
1
vote
1
answer
226
views
Algolia doesn't retrieve facets exact_matches information in a suggestions index
I've implemented an index using the hosted Algolia platform. It contains some records all of them have a few facets, including "lang" that can have the value 'fr', 'de', 'en' or 'it'. I use ...
2
votes
0
answers
159
views
p:commandLink in facet inside a form causing warning log that it's not inside a form
I created a composite component that renders a form and an ul like this:
<h:form id="formid">
<ul>
<composite:renderFacet name="listItems" />
</ul&...
2
votes
1
answer
123
views
How to add horizontal lines dynamically to a facet plot in plotly python?
I am trying to add upper and lower limits red dashed horizontal lines to each facet Line plot based on respective column values but dashed lines are not formed at correct yaxis values of the facets.
I ...
0
votes
1
answer
44
views
ggplot2 with 2 panels with a log scale on only 1
I want to plot Gross Domestic Product per capita (gdppc) and growthRate = diff(log(gdppc)) in 2 panels with gdppc on a log scale and growthRate on a linear scale.
EXAMPLE:
set.seed(1)
growthRate <- ...
2
votes
1
answer
194
views
JSF Composite Components: Facet Content Not Rendering Through Nested Components
I'm facing an issue with rendering content passed through facets in nested composite components. Despite the facets being recognized as not empty, the content inside these facets does not appear on ...
0
votes
1
answer
43
views
I can't seem to find org.apache.lucene.facet.search.params.IFieldSet in Lucene 4.1.0 source even though the JAR from maven has it
I'm trying to migrate the Lucene jars for our product from 4.1.0 to the latest if possible. I noticed that we seem to be using org.apache.lucene.facet.search.params.IFieldSet derived classes for our ...
1
vote
2
answers
496
views
How to position geom_text labels neatly when using stat_summary() + after_stat() to mark median/mean over a histogram
Consider the following plot:
library(dplyr, warn.conflicts = FALSE)
library(ggplot2)
p <-
diamonds |>
filter(color %in% c("D", "E", "F") & cut %in% c(&...
2
votes
0
answers
73
views
Disappearing Data when adding annotations - Plotly
I have a facetted bar plot using both facet_row and facet_col. I need to have annotations for the value of facet_row on each of the individual facets created.
I have tried using xref=paper, which ...
1
vote
1
answer
138
views
How to make a facet plot with some lines repeated in each facet from a single dataframe?
I'm trying to create a facet plot using a data.table. Ideally I would like to add the maximum and minimum acceptable values in each facet so it is easier to compare. They are all in the same data....
1
vote
1
answer
81
views
How can I change the colour of each facet map?
I am plotting survey data (ESS) on party preference using ggplot and am creating a separate facet plot for each party. I would like each plot to have the colour of the party it is showing, wherein ...
2
votes
2
answers
244
views
How to vary x-axis scales by column in facets
I am creating a 2x2 ggplot using facet_wrap where the columns are two different groups.
This means that the x-axis on the columns is the same between the top row and the bottom row, but different ...
1
vote
1
answer
470
views
Azure Search blob metadata split multiple values and map to indexer as seperate values
I am building an Azure search experience to index and search files in blob storage. The blobs have metadata applied (which I am applying through an azure function).
I am mapping the metadata values to ...
0
votes
1
answer
64
views
Free scales for facets in facet_grid change pattern
I have a data set containing mass for different treatments at two experimental areas. There's 2 treatments at one area and 4 at another. I now would like to plot this data, using facet_grid() to facet ...
0
votes
1
answer
673
views
different y axis breaks per facet
I am trying to create different bar graphs within a loop showing counts per species and regions, faceting by regions. The structure of my df it's something like:
# Sample data frame structure
...
2
votes
2
answers
108
views
Remove variable section from faceted bar chart
Every time I make a fasted bar chart, if there is a section with no data ggplot will still make a spot for it in its aim for symmetry and thus it looks like these variables were tested and received a ...
0
votes
1
answer
102
views
MongoDB facet subpipeline array filter with condition
I have aggregation with query as https://mongoplayground.net/p/jxaI7MAyBmJ
I have project type, count and empName by adding stages under data to filter with below 2 condition
type as a2 and
empName (...
0
votes
0
answers
65
views
MongoDB facet subpipeline filter with equal values
I have a collection with document structure
type: POSSIBLE VALUES ARE a1 or a2
emp_name: <<String>>
status: POSSIBLE VALUES ARE 0 or 1
I am using mongodb aggregate facet with 2 ...
0
votes
1
answer
350
views
How to properly create and update a Figurewidget object from a imshow plot with facets?
When using plotly express imshow with facet_col, the returned figure has more than one trace. How can this figure be properly added to a Figurewidget object and later on be updated with new data?
This ...
1
vote
2
answers
81
views
Why is there grid lines for some plots and not for others?
Consider this MWE,
from matplotlib import pyplot
pyplot.style.use('classic')
pyplot.rcParams.update( {
'text.usetex': True,
"font.family": "serif",
'text.latex.preamble'...
0
votes
2
answers
142
views
ggplot2: How to dynamically specify faceting variable?
Let's say I have a dataframe with a column facet that I want to use for faceting. Easy:
ggplot(...) + facet_grid(. ~ facet)
But I want to dynamically specify the faceting column like so:
FACET_COLUMN ...
1
vote
1
answer
614
views
How to create a graph with multiple nested facets horizontally and vertically?
Below is a simplified version of my data. I want to plot the Means using vertical bars with ggplot() + geom_bar. There are a few things I want to do.
I want to separate the data where I have the data ...
1
vote
1
answer
168
views
How to place stat_interval on facets using facet specific y-value? (R, ggplot)
I have multiple histograms faceted, each with a unique y axis. I would like to overlay a dot and line representing the mean and 90%CI near the top of facet using stat_interval. Stat_interval allows ...