280 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
2
votes
0
answers
108
views
How can i fix the Position_stack function that does not work in R?
I am using ggplot2 to create a horizontal bar chart. I use position_stack() function from the ggplot2 library version 4.0.0 on a Windows 11 computer.
packageVersion("ggplot2")
[1] ‘4.0.0’
...
2
votes
1
answer
78
views
Obtaining a ggplot stat-summary() SD ribbon with irregular/aperiodic x-axis values
My actual data is irregularly spaced along the x-axis for multiple IDs, and it's easier for me to see the individual geom_line() and geom_point() geometries with that inherent jitter. In my real case ...
2
votes
1
answer
161
views
How to set/change the default parameters of ggplot's GEOMs using update_geom_defaults() function?
I want to set the geom_boxplot() default params with update_geom_defaults() function. Why the outliers are not discarded by outliers = FALSE arguments?
library(ggplot2)
set.seed(1)
df0 <- expand....
2
votes
1
answer
61
views
Asymmetrical dot positioning using geom_dotplot
I just fixed an issue I was having with geom_dotplot and have run into another. Namely that some of the levels have dots that are off centre from the x-axis tick marks which, whilst not a huge problem,...
0
votes
1
answer
88
views
Not having much success plotting 2D concentration data [closed]
I'm trying to plot what I believe to be a simple figure that will give a 2D interpolation of concentration. I've tried ggplot of the data using geom_raster (results in a blank plot), ...
0
votes
1
answer
42
views
geom_ploygon not showing in R
in my R-Script I am trying to color the diffrent BMI-classes in the background of my ggplot with the following code:
#Gewichtsklassen
untergewicht <- data.frame(
height = c(150, 150, 210, ...
0
votes
0
answers
64
views
Separating overlapping labels using ggraph
I am currently mapping some network traffic and using geom_edge_parallel() to draw the edges, accounting for two way traffic.
The labels for these parallel lines overlap with each other, when ideally ...
0
votes
1
answer
56
views
Geom_line and geom_point issues to distinguish variations over time from pivot_longer data in R
I have a biomarker for which I would like to model the relative variations (var, %) of concentrations (in g/L) over 7 successive times ('Ct0' to 'Ct6'), using geom_line and geom_point.
The basic data ...
0
votes
1
answer
54
views
Connecting stat_summary mean values for multiple groups
I have data which has individual participants, two conditions, and two groups. I am having trouble creating the dot plot connecting the mean data points of the two groups within each condition.
I want ...
2
votes
1
answer
93
views
How can I decrease the space between my points on y-axis in geom_dotplot in R?
I'm trying to make a dotplot with antibody titers (y-axis) ranging from 1:20 to 1:640 by site (x-axis) and I can't reduce the space between the points on the y-axis.
I tried applying log2 to the scale,...
2
votes
2
answers
63
views
How to ensure the negative sign exports correctly in stat_cor element in a ggplot graph?
I am exporting editable ggplots to powerpoint slides. Each graph has a correlation. When the correlation R value is negative, this exports as a box in the graph, instead of a negative sign in text.
An ...
0
votes
1
answer
103
views
Negative values in linear trend and Confidence interval in R
Firstly, the code used.
ggplot(correlation, aes(x=area_ha, y=extent_2000_ha))
+ geom_point( color="green") + theme_ipsum()
+ theme(text=element_text(family="Times New Roman", ...
0
votes
2
answers
59
views
Need to plot line plot across one factor variable with two levels
I have a dataset that records details in milliseconds with a maximum of 20 seconds. I need to plot a value "Buffer" across a one-factor variable with two levels - A and B.
I'm trying to plot ...
1
vote
1
answer
66
views
R ggplot - ggrepel label positions
Been trying to make a pie chart with ggrepel labels. The chart looks fine itself but the label positions are way off from what they should be.
lightingdf <- structure(
list(
Light = c(
...
1
vote
1
answer
64
views
Hide certain legend items by axis in geom_parallel_set plot
I would like to hide certain parts of the legend of the plot below by axis. In other words, suppress legend items for either the "Class", "Sex", "Age", and "Survived&...