Positioning and formatting a legend using the ggplot2 R package (CC141)

  Рет қаралды 4,417

Riffomonas Project

Riffomonas Project

Күн бұрын

Пікірлер: 9
@Riffomonas
@Riffomonas 3 жыл бұрын
Now that I've recreated the chartr version of the chart, what do you think of it? Remember, for everything you don't like you have to say something that you do like about it!
@russtin1
@russtin1 3 жыл бұрын
I would love to see a code club doing a deep dive like this on regexpr . They are a steep learning curve for us muggles.
@Riffomonas
@Riffomonas 3 жыл бұрын
Thanks - this is on the top of the list. I need a practical application for doing a survey of regular expression patterns. I really want to avoid the traditional tutorial type demos
@soyoungsogone
@soyoungsogone 3 жыл бұрын
Fixing that detail on 7:12 is a major test of mental strength. Thank you, ryan reynolds with an r addiction, for this series, the value is off the chart (don't try to fix it)
@Riffomonas
@Riffomonas 3 жыл бұрын
HA! Thanks :) You'll be grateful that I spared everyone my numerous practice runs at trying to fix this. A lot of "what are you doing, R?" 😂
@philocac5424
@philocac5424 2 жыл бұрын
Thank you, very helpful (as your other videos)! I was struggling with the margin inside the legend box (and making a black box around it). it works also using this argument: legend.margin=margin(t=-3, r=2, b=2, l=2) then, I tried out your version (then I needed slightly different margin numbers) legend.text = element_markdown(margin=margin(t=-5, r=2, b=1, l=2) my full theme() - if someone is interested... (probably some things could be improved, ggplot newbie.., but at least it does what I want and spent already enough time) :) theme(legend.position = c(.83, .85), legend.text = element_markdown(margin=margin(t=-5, r=2, b=1, l=2)), legend.title = element_blank(), plot.title = element_text(size = 12), plot.subtitle = element_text(size = 10), legend.key.size = unit(0.4, "cm"), panel.grid.major = element_line(size=0.25), legend.background = element_rect(fill = "white", colour = "black"), plot.margin=unit(c(0,0,0,0), "mm"))#, # legend.margin=margin(t=-3, r=2, b=2, l=2))
@Riffomonas
@Riffomonas 2 жыл бұрын
We’ll done!
@drjzee
@drjzee 3 жыл бұрын
I regularly get confused by the order in recode too - I think rename is the other way around from recode (so new name on the left).
@Riffomonas
@Riffomonas 3 жыл бұрын
For one of them their help page/issue tracker made it seem that the developers want to do something about it but they aren’t sure what 🤷‍♂️😂
Using dplyr's group_by function with and without summarize (CC233)
25:54
Riffomonas Project
Рет қаралды 5 М.
Офицер, я всё объясню
01:00
История одного вокалиста
Рет қаралды 5 МЛН
小天使和小丑太会演了!#小丑#天使#家庭#搞笑
00:25
家庭搞笑日记
Рет қаралды 42 МЛН
iPhone or Chocolate??
00:16
Hungry FAM
Рет қаралды 49 МЛН
Visualizing Survival Data with the {ggsurvfit} R Package
53:15
R Consortium
Рет қаралды 2,1 М.
Bar Charts with {ggplot2}
13:38
yuzaR Data Science
Рет қаралды 6 М.
Офицер, я всё объясню
01:00
История одного вокалиста
Рет қаралды 5 МЛН