python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Add horizontal lines from a vector to a ggplot uisng facet_grid
I would like to add several horizontal lines from a vector to all the plots using facet_grid on the same position
The toy example is this one
test <- c(1,2,3,4)
test_L <- rep(NA, 146)
lines ...
Eric González
Votes: 0
Answers: 0
How to add a label to the x / y axis whenever a vertical / horizontal line is added to a ggplot?
The x and y axis are labeled based on certain interval set by ggplot.
In the event that a horizontal or vertical line is added to the plot, the goal is to label x or y axis at the exact value of the l...
Bear Bile Farming is Torture
Votes: 0
Answers: 1
Both geom_vline and geom_hline fails when faceting spatial map on ggplot2
I am really careful before posting this this question, in order to avoid any duplication. So I intended to create a faceting map based on quarter, equipped with both major and minor grid, whereas the ...
Bram Setyadji Madusuyatno
Votes: 0
Answers: 1
How to apply a continous color ramp to a straight line in ggplot2?
I have would like to apply a continous color ramp to a vertical line in ggplot2. My plot is below. I have applied the continous color ramp to the geom_line() element, while the horizontal lines repres...
ia200
Votes: 0
Answers: 2