Skip to main content

All Questions

Tagged with
0 votes
2 answers
41 views

Sorting calendar plot with geom_segment() without overlapping

I am trying to do this calendar ggplot2. So far, it works fine, but I want to make one adjustment, and I am not finding the way: Overlapping of geom_segment() in num_months 2:5 in year 2021. For some ...
Paula's user avatar
  • 679
0 votes
1 answer
29 views

Sorting calendar plot with geom_segment() + fix scale

I am trying to do this calendar ggplot2. So far, it works fine, but I want to make two adjustments, and I am not finding the way: I want to arrange every segment within each year and num_months, so ...
Paula's user avatar
  • 679
1 vote
1 answer
31 views

Calendar plot with geom_segment() [closed]

I have the following dataset in R. I aim to do a ggplot where the scale goes from 1 to 12 (January, February, ..., December) in the x-axis, and the y-axis goes from 1 to 6 ( num_months variable [in ...
Paula's user avatar
  • 679
1 vote
3 answers
42 views

ggplot , geom_line, stat_summary geom = "line" -- How use geom_line and match stat_summary -- annoying results

I'm a R frequent user but always try to understand why these two graphs are super different and what I can do to mimic geom_line to match the display produced by stat_summary (which is way better) ...
Luis's user avatar
  • 1,552
-1 votes
1 answer
28 views

Is there a way to make two scatter density plots share the same legend in R

I am using geom_pointdensity() to draw scatter density plot in R. Is there a way to draw them side by side as subplots and also share the same legend with the same range?
quick2063's user avatar
0 votes
1 answer
47 views

R: Boxplot whiskers going from minimum to maximum by a group

I would like to create a boxplot by groups where whiskers go from the maximum to minimum in each group, while the 500th highest value point should be highlighted. This is the code that has worked ...
tshelky's user avatar
1 vote
0 answers
36 views

Dynamically change width and height of exported plot based on plot object

I'm working on exporting plots in R, and I need to dynamically set the dimensions (height and width) of the exported plot based on the plot's aspect ratio. The plots may have different scales on the x ...
Serij's user avatar
  • 21
1 vote
0 answers
16 views

How do I arrange a stacked bar chart in r ggplot2 based on one of the variables being stacked? [duplicate]

I am very new to coding and trying to learn the ways of ggplot2. I am stuck on trying to arrange my stacked bar chart by highest to lowest for one of the variables that is being stacked, so there is a ...
amy's user avatar
  • 11
1 vote
1 answer
56 views

How to set non-uniform y-axis ticks in R ggplot2?

I am creating some plots using R ggplot2 and I have run into a challenge. I want to set non-uniform ticks on the y-axis, but I am not sure how to go about it. eg: df <- data.frame(x = c(1, 2, 3, 4, ...
zhang's user avatar
  • 443
2 votes
1 answer
51 views

Plotting image and point cloud in the same graph in R

I want to plot point cloud, data of x and y, and image in R in one graph. I know how to do it in Python, but can't find analogue to imshow. I use rasterimage function and plot, but they result in 2 ...
Strongscientist's user avatar
0 votes
1 answer
60 views

`marginaleffects` error: Matrix columns are not supported

Summary I am trying to using marginaleffects::plot_predictions() to plot predictions from a GLMM. A minimal working example is provided below. The aim I'm trying to plot the predictions only for the ...
user9974638's user avatar
1 vote
1 answer
52 views

Plot too Wide in Patchwork (R)

I've been struggling to understand the patchwork package in R. The barchart on the right of the plot should be much thinner, like the one on top of the scatter plot. Below is my code. Any suggestions? ...
CAM_etal's user avatar
1 vote
3 answers
117 views

Sunflower Plot Using ggplot2

I posted the following question on Posit Community three months ago but have not received an answer. I am reposting it here in the hope that someone can help me. I am interested in creating a ...
Michael Gastner's user avatar
1 vote
1 answer
37 views

How to create a multi-line graph in R transposed (i.e., the other way) using ggplot2? [duplicate]

In most multi-line graphs, it graphs multiple entities of one column, however in my case I want to graph multiple columns of a single entity. In more simple terms a multi-line graph might show life ...
user25049371's user avatar
1 vote
1 answer
42 views

Create inverted dumbbell plot in r with Highcharter

I am trying to create a dumbbell plot using the highcharter package. Since the Highcharts type dumbbell only works with two observations, I have been using columnrange and scatter together to create ...
jdenn0514's user avatar

15 30 50 per page
1
2 3 4 5
219