Questions tagged [geom-ribbon]

37 questions
0
votes
1 answer

R - Coloring the area under/above a line in different colours using geom_ribbon

I have a simple line graph which fluctuates around zero. Using geom_ribbon, I would like to color the area between the line and zero in two different colors, depending on whether the line is above or under zero. Using a single color to fill the area…
Rasul89
  • 588
  • 2
  • 5
  • 14
0
votes
0 answers

geom_errorbar and geom_ribbon working together

I want to plot error bars and a ribbon shaded area to mark the average of the values of the error bars: For some reason I cannot make geom_errorbar and geom_ribbon work together. A sample code: group <- c("Group 1", "Group 1", "Group 2", "Group 2",…
Laura K
  • 207
  • 1
  • 9
0
votes
1 answer

How to draw geom_ribbon to draw 3 y axis in a layout using R

I already drew 3 plots using ggplot, geom_line and geom_ribbon etc. I want to merge y axis plots of p_min, p_max and p_mean in a layout. p_min, p_max and p_mean must locate in y axis. x axis is number(1,2). Let me know how to draw plots of multiple…
Plutos
  • 51
  • 1
  • 8
0
votes
1 answer

how to use ggplot, geom_line and geom_ribbon to draw multiple y axis in a layout

There are different data sets as bottom. 1-1.Data…
Plutos
  • 51
  • 1
  • 8
0
votes
1 answer

Use group summary values as geom_ribbon in ggplot2?

I am trying to plot a line plot by groups, where I would like to add underling shading covering min and max values for categories. I would like to replicate plot like this, but grey shade covers all between the dashed and solid black lines (not…
maycca
  • 3,848
  • 5
  • 36
  • 67
0
votes
1 answer

Coloring of standard deviation shading using geom_ribbon

I am working with a data frame, where I have columns: species replicate position DOY RED.PEAK RED.PEAK.SD FAR.RED.PEAK FAR.RED.PEAK.SD 1 LINGONBERRY 1 LOW 1 0.10218177 0.050779465 0.14498610 0.04848566 2 LINGONBERRY …
Paulina
  • 41
  • 3
0
votes
1 answer

textured geom_ribbon similar to barplot, which has arguments a) density and b) angle

Is there a way to introduce the arguments "density" and "angle", or any other interesting ones from "ggplot::barplot" into "ggplot::geom_ribbon"? I have been looking for basic texture of geom_ribbon -like points and crosses and lines-, instead of…
1 2
3