I am using RPgSQL to grab some data from a postgresql database (about 179
columns and a few thousand rows), and I want to do a lot of pairwise
comparison of the rows...(this is yeast genomic microarray data for those
who care)
I get to the database:
db.connect(dbname="yeast")
and grab the first two rows like this:
t<-sql.select(columns="*", from="gasch", limit=2)
then create two lists a la:
a<-t[1,][4:length(t[1,])]
b<-t[2,][4:length(t[2,])]
(the first 3 entries are text)
and now I just want to see a plot(a,b) but I always get the following
error:
Error in plot.new() : Figure margins too large
(I even tried par(mar=c(0,0,0,0)))
Oddly I get the following behaviour:
works (the graph looks like it should)
but the reverse
gives me:
Error in plot.new() : Figure margins too large
similarly for b...so I am guessing the problem is passing my lists as the
first argument...
Manually getting the rows and making a text file that explictly states the
vectors and then sourcing the file from R does plot(a,b) just fine....
If I understand the R classes correctly t is a dataframe and a and b are
lists (named by the column headings of the database)....