How to increase space in Y axis label
1
0
Entering edit mode
3 months ago

Hello, Everyone

I have run this R script to get a bubble chart library(reader)

data <- read.csv("C:\Users\user\Documents\class.csv", header=TRUE, stringsAsFact=FALSE

sizeRange <- c(0,20)

library(ggplot2)

ggplot(data, aes(x=0,y=Class)) +

geom_point(aes(size = Total),colour="green",stroke=2) + scale_size(range = sizeRange)+ xlim(-0.02,5)+ theme_bw() + theme(panel.border = element_blank(), axis.line = element_line(colour = "white"))

I got plot like this, enter image description here

I want to increase the space between the bubbles , so that they can look distinct and more clear.

Please suggest

bubble chart R • 197 views
ADD COMMENT
2
Entering edit mode
3 months ago
kashiff007 ★ 1.8k

Try to play with axis.title.y

for example:

theme(axis.title.y = element_text(margin = margin(t = 10, r = 20, b = 30, l = 40)))
ADD COMMENT

Login before adding your answer.

Traffic: 2223 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