Is there a way to add lights and or shades around a dot to get a close result to the following image using geom_point
?
I have thought about creating a gradient for each dot but I don't know how to implement it since each dot should have a single value.
Found the following topic where the author kind of achieved to get 3 colors per dot but I don't know the strucure of his data and it seems that he plotted each dot 3 times.
R ggplot increase points by size and by color for same variable
Reproducible example
##### Initiating data
dfDot <- data.frame(value=1,
group="A")
##### Display plot
plotDot <-
ggplot(data=dfDot, aes(x=group, y=value)) +
geom_point(size=80) +
theme_dark() +
theme(axis.title=element_blank(),
axis.text=element_blank(),
axis.ticks=element_blank())
Do you just want to add some blur to the point? You can do that with the ggfx
library. For example
library(ggfx)
dfDot <- data.frame(value=1,
group="A")
##### Display plot
ggplot(data=dfDot, aes(x=group, y=value)) +
with_blur(
geom_point(size=80), sigma=20
) +
theme_dark() +
theme(axis.title=element_blank(),
axis.text=element_blank(),
axis.ticks=element_blank())