# portion of of my y axis label

...The portion of my Y-axis is missing. How to solve that
Code..........
mod1 = lm(chl~POC, data = NEM)
modsum = summary(mod1)
plot (NEM\$chl, NEM\$POC, pch = 20, type = 'b', las = 3,
xlab=bquote("Chl-a (" ~ mgm^-3 ~ ")"),
ylab =bquote("POC (" ~ mgm^-3 ~ ")"), main='Northeast Monsoon', xlim= c(0.5,2), ylim= c(100, 250))

Hi @Rony150640,
You need to adjust the plotting margins. Try this code:

``````help(par)
par()\$mai
# [1] 1.02 0.82 0.82 0.42

# From help:
# mai is a numerical vector of the form c(bottom, left, top, right)
# which gives the margin size specified in inches.

# Default settings don't leave enough space for superscripted text
plot(c(1,2,3), c(4,6,8), pch = 20, type = 'b', las = 3,
xlab=bquote("Chl-a (" ~ mgm^-3 ~ ")"),
ylab=bquote("POC (" ~ mgm^-3 ~ ")"),
main='Northeast Monsoon')

# Increase the width of the left margin
par(mai = c(1.02, 1.00, 0.82, 0.42))
par()\$mai
# [1] 1.02 1.00 0.82 0.42

# Now plot fits
plot(c(1,2,3), c(4,6,8), pch = 20, type = 'b', las = 3,
xlab=bquote("Chl-a (" ~ mgm^-3 ~ ")"),
ylab=bquote("POC (" ~ mgm^-3 ~ ")"),
main='Northeast Monsoon')
``````

HTH

Thanks a lotâ€‹:yum:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.