R script to reduce distance between the plot and the label
1
0
Entering edit mode
4 months ago

Hi, everyone. I have used the below script to get this plot. But now I want to reduce this distance between the plot and the y axis label, how it can be done? I want to remove empty space from both sides, from the beginning, and from the end. How can I remove the axis grid from the background?

dfdata = data.frame(data)

dfdata

sizeRange <- c(8,30)

library(ggplot2)

ggplot(data, aes(x=10,y=Phylum)) + geom_point(aes(size = Total,alpha = 7,colour = "blue", stroke=2)) + scale_size_area(range = sizeRange) +theme(panel.background = element_blank())+ theme_minimal()+theme(legend.position = "none")

bubble chart ggplot2 R • 222 views
0
Entering edit mode
ggplot(data, aes(x=10,y=Phylum)) +
geom_point(aes(size = Total,alpha = 7,colour = "blue", stroke=2)) +
scale_size_area(range = sizeRange) +
xlim(-0.025,0.025)+
theme(panel.background = element_blank())+
theme_minimal()+
theme(legend.position = "none")