R script to reduce distance between the plot and the label
1
0
Entering edit mode
2.9 years 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?

library(readr) data <- read.csv("data.csv", header=TRUE, stringsAsFact=FALSE)

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")

enter image description here

bubble chart ggplot2 R • 797 views
ADD COMMENT
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")
ADD REPLY

Login before adding your answer.

Traffic: 1825 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6