[R] xlim/ylim problem

Pascal Oettli kridox at ymail.com
Sun Dec 16 02:43:43 CET 2012


Hi,

ylim=c(0,15000)

HTH
Pascal

Le 12/12/16 9:14, Tom Hoffrichter a écrit :
> 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 at 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.
>




More information about the R-help mailing list