Questions tagged [ggplot2]
Advanced R visualisation and plotting package based on the grammar of graphics. ggplot2 is also available in Python via 'plotnine' which uses ggplot2 code
87 questions
1 vote
0 answers
103 views
Add statistical test to this ggplot boxplot in R
Good morning, I was wondering if anyone could assist me with the following: I am struggling to add a statistical test to this boxplot like a bar (preferably with Wilcox test). I tried with adding ...
5 votes
2 answers
104 views
Legends with ggplot
I am trying to generate a plot with mean and standard deviation but I am having some difficulty with the legend. As you can see from the image, the legend title "Statistics" appears two ...
3 votes
0 answers
54 views
Sankey plot for unequal node sizes
I am trying to plot a host-parasite-pathogen network using a sankey graph and I am having problems scaling the nodes to their occurrence (counts). The main issue is that the host count is nested in ...
2 votes
1 answer
167 views
ggplot with stat_n_text with n for subgroups
Good afternoon, I am trying to add the n for each of the subgroups in females and males (not just for the total in male (n=107) and female (n=94)). However, I havent found a way to do so: The ...
0 votes
1 answer
194 views
Wrap names in ggplot in R
Good afternoon, I am trying for a while now to wrap these labels in my plot (I want that it goes to the next line instead of making a very long line). I tried with the scales package in R, but it ...
0 votes
1 answer
233 views
Volcano Plot: How to show unique gene names in the plot?
I'm wondering how can I show unique gene names in the volcano plot. My data looks like, ...
1 vote
1 answer
295 views
stacked barplot with error bars
I need to create a barplot with error bars, my data consists of 2 groups called "Genot", with 3 sub-groups "Suberin" for each, associated with a value "Percent". ...
1 vote
1 answer
98 views
Intepreting and applying ordinal logistic regression coefficients to calculate probabilities?
Can someone help hint me how I can interpret ordinal logistic regression coefficients and how I can use the .L, .Q and .C terms to calculate probabilities? I am analysing a dataset, where people ...
2 votes
1 answer
469 views
Removing missing categories from geom_bar
I have a simple dataframe that includes points where the x values are 0, 1, 2, 3, 4, and 7. When I go to plot the data this is what ggplot2 gives me: I only want to include the points mentioned above....
-1 votes
1 answer
383 views
change the order in ggplot
I'm trying to make a plot that looks like this: This is a rudimentary plot I did in excel. It's a plot of reads by length. Very simple nothing crazy to it. The important thing to note is that it's ...
-1 votes
1 answer
150 views
Histogram plot using R/python with two variables[BC and Control] and their corresponding gene names
How do we plot histogram in R\Python with two variables[BC and Control] and their corresponding gene names examples is below: Thank you,
2 votes
1 answer
2k views
How to change the position of groups colors in DimPlot of Seurat
I have a Seurat object and plotted the Dimplot for UMAP visualization for 2 variables, as shown in the image below. Now, the problem is that I want the group by variables such as ...
2 votes
2 answers
257 views
Display row and column names in R
I have plotted a heat-map with 235 rows and 570 columns which is below: how do we make clear names of row and columns on this graph using R?
3 votes
0 answers
862 views
Expending UpsetR plot with Orthofinder families and gene numbers
I can create an Upset plot with the input file, which can be found here ...
0 votes
1 answer
459 views
Manually order the set fails in UpsetR
This question was also asked on Biostars I have tried to use UpsetR to visualise the input file, which can be found here. How is it possible to make UpsetR accept an order defined in ...