when I plot the grid there are some margins that I don't want it to be visible in my plot. how can I solve this problem?
here is an example:
Grid coordinates
grd.coor<- data.frame(lon=rep(seq(13,16.5,0.5), 13),lat=rep(seq(91,97,0.5),each=8))
library(ggplot2)
ggplot(grd.coor, aes(x=lon, y=lat))+geom_point()+
theme(panel.grid.minor = element_line(colour="white", size=0.5)) +
scale_y_continuous(minor_breaks = seq(91 , 97, .5), breaks = seq(91, 97, .5))+
scale_x_continuous(minor_breaks = seq(13,16.5,0.5), breaks = seq(13,16.5,0.5))
After running this code I get this plot
I want only the area inside the red square to be displayed without the margins.