R - How to draw an empty plot with no height? -
i can make empty plot in r using:
plot.new()
that create blank plot default width , height.
i want create empty plot minimal height. tried png('z.png', height=1)
, got me:
> png('x.png', height=1) > plot.new() error in plot.new() : figure margins large
how can create such plot? guess have 0 margins too.
well... don't know why want this, here goes:
# make png file png('x.png', height=1) # change margins of plot 0 on each side par(mar=rep(0,4)) # make empty plot plot.new() # close connection png file dev.off()
Comments
Post a Comment