[R] Background color of plot

2003-02-04 Thread Patricia Maforte dos Santos

I'm using the parameters mfrow and mfg to display some graphics(plots)
at the same time. Although, because of the parameter mfg, the parameter
bg don´t change the background color.

What can I do to solve this?


Here is the code I'm using...

...
 i - 1
 for(j in 1:4){
 for(k in 1:2){
 limiares - tabLimiar(arrayMetricas[,i])
 op - par(mfrow=c(4,2),pty=s)
 par(mfg=c(j,k))
 
plot(limiares,main=a[i],ylab=frequencia,xlab=limiares,bg=white,col=green,col.main=seagreen,type=b)
 box(which=figure,lty=solid,col=white)
 par(op)
 i - i+1
 if(i == ncol(arrayMetricas))
break
 }
 }
...


Patricia.

--
Patrícia Maforte dos Santos
Centro de Informatica
Universidade Federal de Pernambuco
Recife/PE - Brasil
--

__
[EMAIL PROTECTED] mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help



[R] Problems with table

2003-02-03 Thread Patricia Maforte dos Santos
Hi,

I'm having difficulties in the manipulation of the function table.
Necessary to have access its elements and I am not obtaining. For example,
if I have a data.frame with name df and make:
t  - data.frame(table(df))
and later trying to make a comparison of the type t[1,1 ]  0.1, generates
an error of the type:

[1] NA
Warning message:
 not meaningful for factors in: Ops.factor(t[1, 1], 0.1)

How can I resolve this?

Thanks,


--
Patrícia Maforte dos Santos
Centro de Informatica
Universidade Federal de Pernambuco
Recife/PE - Brasil
--

__
[EMAIL PROTECTED] mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help