3 Simple Tips to Avoid Overplotting in R #shorts #rstats #programming #ggplot2 #datavisualization

preview_player
Показать описание
This is the very first YouTube Shorts video that was ever published on Statistics Globe! :) It would be amazing if you could let me know your feedback so that I can incorporate it in future videos. This video explains how to avoid overplotting in R programming using different functions and arguments of the ggplot2 library. Which topics would you like to see next?

R code of this video:

x = c(rnorm(1000),
rnorm(1000, 5, 2),
rnorm(1000, 1, 3)),
y = c(rnorm(1000),
rnorm(1000, 1, 4),
rnorm(1000, 2, 2)),
group = rep(LETTERS[1:3],
each = 1000))

library("ggplot2")

ggplot(data, aes(x, y)) +
geom_point()

ggplot(data, aes(x, y)) +
geom_point(size = 0.01)

ggplot(data, aes(x, y)) +
geom_point(alpha = 0.1)

ggplot(data, aes(x, y,
col = group)) +
geom_point()

ggplot(data, aes(x, y,
col = group)) +
geom_point(size = 0.05,
alpha = 0.2)

Follow me on Social Media:

Рекомендации по теме
Комментарии
Автор

Thorough, useful, concise and expertly seasoned with some humor.

jkirkb
Автор

Bright and snappy, what's not to like. Well done. These shorts are invaluable for my work flow. Thanks!

hzosjjs
Автор

Great! Short, precise, easy to understand and implement.

gecarter
Автор

Found your channel yesterday, watched the announcement, see today the result. It's good! If we see something in the short that is of more interest/concern, we can pause the short to take a closer look at the code and graphs. Works fine!

timmyhubart
Автор

I'm liking these Shorts! Quick, to the point AND informative?! What more could you ask for?! Love it!

beachlife
Автор

Add facet to the list... it becomes more than 3 ideas, but faceting by group is invaluable.

New shorts post looks good.

jmurtha
Автор

I liked ur previous style. I like this new style. If u make another new style I will like it too.
U r very skilled & friendly, that's why your videos r knowledgeable & enjoyable.

saimajahan
Автор

This style of video is really cool and fun! I loved it, more please Joachim

pedropancine
Автор

Looks good on my phone and code is clear. I 🎉✨

FlexThoseMuscles
visit shbcf.ru