Hi
r-help-boun...@r-project.org napsal dne 21.11.2010 19:31:33:
>
> I have looked into par documentation, and only setting for size of the
plot
> area was pin. But this setting sets the area as inflexible, that is no
R intro manual
Chapter 12: Graphical procedures page, 71
A typical figure is
finally I found what I wanted, John Kane send it, and I don't know why it
hasn't been posted automatically to the list so I post it by myself:
solution is this: par(mai=c(.5,.5,.5,.5))
These four numbers are the margins, so setting it to 0,0,0,0 will render
only plot area with 1px for box on eve
# 89 px / 105 px - wasted space
png("d:/test.png",width=1369,height=1129,units="px")
par(bg='black',fg='gray',col='gray',col.axis='gray',col.lab='gray',col.main='gray',col.sub='gray')
plot(x,y,ylim=c(-20,20),xlim=c(min(x),max(x)),pch='.',col = rgb(1,1,1,
0.5),yaxt="n", ann=FALSE)
dev.off()
so onl
On Nov 21, 2010, at 2:43 PM, madr wrote:
finally I found what I wanted, John Kane send it, and I don't know
why it
hasn't been posted automatically to the list so I post it by myself:
solution is this: par(mai=c(.5,.5,.5,.5))
These four numbers are the margins, so setting it to 0,0,0,0 wi
On Nov 21, 2010, at 1:31 PM, madr wrote:
I have looked into par documentation, and only setting for size of
the plot
area was pin. But this setting sets the area as inflexible, that is no
matter how I make the window small or big it stays the same. Default
value
has advantage that however
I have looked into par documentation, and only setting for size of the plot
area was pin. But this setting sets the area as inflexible, that is no
matter how I make the window small or big it stays the same. Default value
has advantage that however it uses plot area that is always smaller than
dev
Alternatively give ggplot2 package a try:
x= c(1,5,7,-3,4)
y= c(2,4,-5,2,5)
xx <- data.frame(x,y)
library(ggplot2)
qplot(x,y, data=xx)
--- On Sun, 11/21/10, madr wrote:
> From: madr
> Subject: [R] how to get rid of unused space on all 4 borders in plot() render
> To: r-help@r
On Nov 21, 2010, at 11:49 AM, madr wrote:
x= c(1,5,7,-3,4)
y= c(2,4,-5,2,5)
plot(x,y,ylim=c(-20,20),xlim=c(min(x),max(x)),pch='X',col = rgb(0,
0, 0,
0.5),yaxt="n", ann=FALSE)
Rather than filling up r-help with incremental beginner questions you
need to either:
--- read more introduct
x= c(1,5,7,-3,4)
y= c(2,4,-5,2,5)
plot(x,y,ylim=c(-20,20),xlim=c(min(x),max(x)),pch='X',col = rgb(0, 0, 0,
0.5),yaxt="n", ann=FALSE)
and this code produces:
http://i53.tinypic.com/ffd7d3.png
Where I marked in red areas that I want to get rid of and use as much real
screen estate as I can.
--
Vi
9 matches
Mail list logo