Posts by ALS.Meyer • 136 points
3 posts
-
2
votes2
answers43
viewsA: Left_join returning dataframe with more lines than the original
It is hard to know exactly what is happening without seeing your complete data. But perhaps it is as follows: When you run left_join(A, B), all matching combinations between A and B are returned. In…
-
0
votes1
answer49
viewsA: ggridges: peak heights proportional to quantities
You can do it using height = ..count.. and geom_density_ridges(stat = "density") ggplot(dt, aes(x=years, y=reorder(councils_qt, -years, FUN = mean), height = ..count..)) + geom_density_ridges(stat =…
-
-2
votes1
answer226
viewsQ: How to break caption text in R
I need to plot a legend that has a very large text. But the problem is that when I export the R figure, part of the text is outside the Plot area. I wonder if there is a way I break the text of the…