Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
30 views

I have 3D data that are all dates. I want to plot them with a contour. I have almost what I want with geom_contour_filled of package ggplot2 but I struggle to obtain a decent legend as dates (I'd like ...
Grégwar's user avatar
3 votes
1 answer
89 views

I have a 2 min data set sampled at 10 Hz that I want to plot like an ECG in R: I want to create a plot with a 30 s window, plot the first 30 s from left to right in real time, then after 30 s, the ...
Mata's user avatar
  • 705
1 vote
1 answer
97 views

I am creating a Multiple Correspondence Analysis (MCA) plot in R using FactoMineR, factoextra, and ggplot2. The goal is to add confidence ellipses around the archetype categories in the MCA space. The ...
Nikos's user avatar
  • 413
-1 votes
0 answers
67 views

I'm using diamond dataset (tidyverse) and im testing some values with binwidth on the carat count and this is hapening. This is the code: ggplot(diamonds, aes(x = carat)) + geom_histogram(binwidth =...
Cidip's user avatar
  • 1
2 votes
2 answers
93 views

What is the easiest-to-replicate way of reordering these bar graphs ( group1, group2) so that it is arranged in ascending order of col3 from bottom to top? I am looking for a solution that can be used ...
Wren's user avatar
  • 41
1 vote
1 answer
64 views

I have previously used the stat_pointinterval() function from the R package tidybayes to make plots of the median and credible intervals around model parameters. While re-running code today, none of ...
tnt's user avatar
  • 1,527
3 votes
1 answer
117 views

I have following linear regression model: library(nlme) library(lattice) data(Orthodont) model = lm( distance ~ age * Sex, Orthodont) lattice::bwplot(getGroups(Orthodont) ~ resid(model)) However, I ...
Daniel Lobo's user avatar
1 vote
1 answer
78 views

I am running code that I previously used to create maps for my data. The background for the map is: library(rnaturalearth) library(sf) countries <- ne_countries(scale = "medium", ...
Devon's user avatar
  • 41
0 votes
0 answers
25 views

Here is my code: group_composition <- turtle_data %>% group_by(group) %>% summarise( n_turtles = n(), n_male = sum(sex == "Male"), n_female = sum(sex == "Female&...
eiion's user avatar
  • 31
3 votes
2 answers
130 views

When plotting a SpatVector using ggplot2, if I define a projection using coord_sf(), it adds these lines that I think come from the data wrapping around the plot extent. Best way to fix? library(...
Henry Holm's user avatar
0 votes
1 answer
77 views

I'm getting an odd problem where I've attempted to plot a scatter graph and fit a quadratic regression line to it. I used stat_smooth() to make the line, and stat_regline_equation() to print the ...
CJG's user avatar
  • 3
2 votes
1 answer
67 views

This legend should have an additional event "Spring", which is represented by a point in the legend, that is below the information about the bars. I can't get this to show up in the legend. ...
Christy Meredith's user avatar
-3 votes
2 answers
77 views

I have below data and ggplot dat = structure(list(date = structure(c(19722, 19388, 19691, 19447, 19508, 19600, 19722, 19630, 19691, 19874, 19813, 19874, 19813, 19874, 19813, 19813, 19874, 19874, ...
Bogaso's user avatar
  • 3,896
4 votes
2 answers
155 views

I am doing some time series clustering, and would like to align the dendrogram with the time series shapes. This is almost there: library(ggplot2) library(reshape2) library(stats) library(patchwork) ...
Neal Fultz's user avatar
  • 9,779
4 votes
3 answers
227 views

I'm trying to write an extension for ggplot2 in R that lets a user add text annotations in the margins. My idea is to put the text in new rows/columns that get added to the plot's gtable. Hopefully ...
Dagremu's user avatar
  • 491
8 votes
2 answers
290 views

How do I make the line in the graph above a double line like shown in below? Some example code: df <- data.frame(dose=c("D0.5", "D1", "D2"), len=c(4.2,...
J. Doe's user avatar
  • 1,882
4 votes
1 answer
112 views

In a Shiny application, using ggiraph to make a ggplot2 plot interactive, using geom_col_interactive() or similar to add tooltips to a plot element, tooltip appears on hover, but if the user clicks ...
Bastián Olea Herrera's user avatar
1 vote
2 answers
110 views

I am trying to compose a figure with multiple panels. I have a lot of empty space and I am trying to overlap some of the rectangular panels, so I can make some of them larger. However, setting in ...
dkysh's user avatar
  • 91
0 votes
0 answers
60 views

I am trying to produce a CCA graph from a large microbiome dataset of turtles that includes some additional information like diet and climate. I am trying to see how these factors influence microbial ...
Franciscus Scheelings's user avatar
0 votes
0 answers
88 views

I am making a stacked polar bar chart in ggplot2 and I think I reached a good result in the picture attached. However, there is an annoying wider space at the top between the Chordata and Molluscs ...
Ema_Plant95's user avatar
0 votes
1 answer
90 views

When building a radar plot, I want to grid major to be drawn, but there is an extra line that is added even if I set the scale_y_continuous(breaks= c(0:5)+exp_lim). Is there a way to only draw the ...
M. Beausoleil's user avatar
2 votes
1 answer
77 views

I'm having trouble fixing my secondary y-values. I have a context plot showing my inputs and a results plot showing the outputs. But no matter what I do, the values on my secondary y-axis don't align ...
frogfish's user avatar
1 vote
1 answer
63 views

I have a dataset with a binary outcome income and two continuous predictors, age, and education_num. I'm fitting a logistic regression model with a natural spline for age and an interaction with ...
Konstantinos Gkirgkiris's user avatar
2 votes
3 answers
104 views

I'm creating a stacked area plot showing phytoplankton biovolume over time, and I have one year of missing data. I'd like my plot to show the break in the data as it would using geom_line, but I can't ...
KT-'s user avatar
  • 23
2 votes
1 answer
98 views

I am trying to plot the percentage of three cellTypes (T cells CD4, T cells CD8 & Tregs) that are assigned to A vs B, averaged across the ROI_name column and with mean_se bars, however the plotted ...
Megan Cole's user avatar

1
2 3 4 5
1155