try ylim=c(0,1500) You are missing the "c" which constructs a vector, without the "c" it gets confused.
On Sat, Dec 15, 2012 at 5:14 PM, Tom Hoffrichter < tom.hoffrich...@googlemail.com> wrote: > Hi everybody, > > > > just arrived at R and immediately I got a problem. > > Here's my script: > > > > setwd("C:/Users/Tom/Eigene Tools/Programming/R/Data") > > blast_hits<-read.table("blastHit_covLenght.txt", header=T) > > blast_hits <- as.matrix(blast_hits) > > numerical1<-data.matrix(blast_hits, rownames.force = NA) > > > > table_no_blast_hits<-read.table("noBlastHits.txt", header=T) > > no_blast_hits <- as.matrix(table_no_blast_hits) > > numerical2<-data.matrix(no_blast_hits, rownames.force = NA) > > > > All<-merge(numerical1, numerical2, all=TRUE) > > library(hexbin) > > bin<-hexbin(All, xbins=100) > > > > # The next line works pretty good, but there is one extrem artefact in the > data, which let collaps all the data to a small area # > > > > plot(bin, main="All",colramp=function(n){heat.ob(n,beg=230,end=25)}) > > > > # So I tried to scale my yaxes, with the next line: > > #plot(bin, main="All",ylim=(0,15000), > colramp=function(n){heat.ob(n,beg=230,end=25)}) > > > > # The following error message is displayed: > > #Fehler: Unerwartete(s) ',' in "plot(bin, main="All",ylim=(0," > > # Which I would translate to: > # Error: Unexpected ',' in "plot(bin, main="All",ylim=(0," > > > > I flashing idea would be a great help > > Thx Tom > > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Gregory (Greg) L. Snow Ph.D. 538...@gmail.com [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.