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)
Background bars in ggplot2 using geom_rect
I have daily flow data in a dataset I've called "dat1_na".
It spans between ~1940 and ~2020 so there's 18,780 lines in this dataset.
str(dat1_na) is:
'data.frame': 18780 obs. of 9 variabl...
Greg
Votes: 0
Answers: 1
ggplot2: Plot two different Densities in the same Plot of the same Variable before and after a Cutoff
My goal is to plot two different densities in the same plot of the same variable. I want to do this as it is common to show robustness of the forcing variable (here z) in a Regression Discontinuity De...
Oubi
Votes: 0
Answers: 1
I am looking to count the number of points in a certain region of my scatter plot with ggplot2
I have a scatter plot:
ex<- ggplot(rdr, aes(x = hb, y = iv, color = pt))+ geom_point() +
ylim(-20,20) +
xlim(-20,20) +
annotate(geom = "rect", xmin = -10, xmax = 10, ymin = -10, y...
natguy8
Votes: 0
Answers: 1
Geom_Hex coloring by 3rd variable
I'm trying to create a normal hexbin plot but instead of coloring the plot by count, the default, I would like to have it colored by the average value of a third variable. In my particular case, I can...
Justin
Votes: 0
Answers: 2