Displaying 13 results from an estimated 13 matches for "xbins".
Did you mean:
bins
2004 May 26
2
identify() - image()
Hi all;
Just to ask if you know about any available function in R to identify points
in a image plotted in X11. Something like the function identify(), but able
to extract (x,y,value) groups from the image.
Thanks and best regards,
Javier
2012 Mar 12
1
to Michael ... Re: How do I do a pretty scatter plot using ggplot2?
Hi Michael,
I am trying the solution you've suggested below:
DAT <- data.frame(x = runif(1000, 0, 20), y = rnorm(1000))
DAT$xbin <- with(DAT, cut(x, seq(0, 20, 2)))
p <- ggplot(DAT, aes(x = x, y = y)) + geom_point(alpha = 0.2) +
stat_quantile(aes(colour = ..quantile..), quantiles = seq(0.05, 0.95,
by=0.05)) + facet_wrap(~ xbin, scales = "free")
print(p)
2003 Jun 15
2
dvd+rw-tools ported to FreeBSD (Sony 500A DVD[+/-]R[W] support)
I just finished up a port of Andy Polyakov's excellent dvd+rw-tools
to FreeBSD, and he has incorporated the patches into his release:
http://fy.chalmers.se/~appro/
http://fy.chalmers.se/~appro/linux/DVD+RW/
http://fy.chalmers.se/~appro/linux/DVD+RW/tools/
(version 5.8.4.4.4)
These tools support DVD-R, DVD-RW, DVD+R, and DVD+RW format dvd burners,
including the popular Sony
2008 May 13
2
Plotting Frequency Distribution in R
Hi,
How can plot a frequency distribution curve for the following data.
V1 V2
1 1 160.54%
2 1 201.59%
3 1 18.45%
4 1 179.03%
5 1 274.37%
6 1 0.00%
7 1 24.52%
8 1 39.17%
9 3 43.72%
10 1 53.06%
11 1 64.97%
12 1 79.84%
13 1 98.08%
14 1 115.32%
15 1 127.96%
16 1 155.38%
17 1 157.25%
18 1 193.17%
19 1 51.53%
20 15 99.32%
21 1 106.86%
22 1 219.44%
2012 Dec 16
3
xlim/ylim problem
...mes.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=&quo...
2012 Nov 17
2
Using cbind to combine data frames and preserve header/names
I have a dataframe that has a header like so:
class value1 value2 value3
class is a factor
the actual values in the columns value1, value2 and value3 are 0-255, I wish to binarize these using biclust.
I can do this like so:
binarize(dataframe[,-1])
this will return a dataframe, but then I lose my first column class, so I thought I could combine it like so:
dataframe <-
2011 Dec 12
0
limit ranges in hexbin
...hexbin(x, y)
plot(hbin)
That does get me a hexgonal bin plot, so far, so good. My problem now is
twofold:
1) Some of my data points have really high values in x and y, and I would like
to exclude them. First idea was to set xbnds and ybnds parameters for hexbin
like this.
hbin<-hexbin(x, y, xbins = 50, xbnds = c(0, 5000))
However, hexbin does not like it: Error in hexbin(x, y, xbins = 50, xbnds =
c(0, 5000)) : 'xbnds' must encompass range(x). Is there some other way to
enforce limits in x and y? Otherwise, I could, of course, prefilter my data.
2) The second problem is limiting...
2011 Jan 04
0
Error in M[, 1] : incorrect number of dimensions when trying to plot hexbin
...er, n= -1)
par(mfrow=c(5,3))
tmp6=rep("UserScatterActionRegion.pdf")
tmp7=paste(tmp6,sep="")
tmp7
#pdf(tmp7)
jpeg(file="UserScatterActionRegion.jpeg")
for (i in 1:20){
x<-subset(user01 ,userID == userList[i,],select=c(X,Y))
x
bin<-hexbin(x$X, x$Y, xbins=100)
part1=rep("Action Regions")
nameFull=paste(userList[i,],part1,sep="")
nameFull
plot(bin, main=nameFull)
}
dev.off()
2008 Sep 24
0
hexbin object to vector (shapefile)
Is it possible to convert an hexbin object like
hexbin(rep(1:100,each=100),rep(1:100,100),xbins=10)
and convert it to a vectorial (shp) format?
Paulo
----------------------------------------------------------------------------
-------------------------------------------------
This electronic mail transmission including any attachment hereof, contains
information that is private and confident...
2010 Oct 19
1
could not find function "hmatplot"
...y)
age <- cut(NH.vars$Age,c(1,45,65,200))
sex <- NH.vars$Sex
subs <- tapply(age,list(age,sex))
#bivariate bins for each factor combination
for (i in 1:length(unique(subs))) {
good <- subs==i
assign(paste("nam",i,sep=""),
erode.hexbin(hexbin(x[good],y[good],xbins=23,xbnds=rx,ybnds=ry)))
}
nam <- matrix(paste("nam",1:6,sep=""),ncol=3,byrow=TRUE)
rlabels <-c("Females","Males")
clabels <- c("Age <= 45","45 < Age <= 65","Age > 65")
zoom <- hmatplot(nam,rlabels,clabel...
2016 Jul 12
2
[R] Forking and adapting an R package
On 12/07/2016 7:28 AM, timo at timogrossenbacher.ch wrote:
> Hello.
>
> I'm trying to adapt the package ?hexbin? to suit my needs. This is the first
> time I do this. I've read a bit through Hadley's ?R packages?, but now I'm
> pretty lost (from a workflow point of view). I am using RStudio and Hadley's
> devtools.
>
> So I forked the repo I want to
2016 Jul 13
0
[R] Forking and adapting an R package
...a
> vignette. You need to put an explicit
>
> library(hexbin)
>
This is actually done in the chunk that fails (it fails on the last line here).
library("grid")
library("hexbin")
x <- rnorm(1000)
y <- rnorm(1000)
##-- Hexagon Bins: --
hbin <- hexbin(x,y, xbins = 25)
> in one of the code chunks.
>
> Duncan Murdoch
>
> >
> > Also, I tried running devtools::check() and it already fails there:
> > R version 3.2.5 (2016-04-14) -- "Very, Very Secure Dishes"
> >
> > Platform: x86_64-pc-linux-gnu (64-bit)
&g...
2012 Jul 09
3
Predicted values for zero-inflated Poisson
Hi all-
I fit a zero-inflated Poisson model to model bycatch rates using an offset term for effort. I need to apply the fitted model to a datasets of varying levels of effort to predict the associated levels of bycatch. I am seeking assistance as to the correct way to code this.
Thanks in advance!
Laura
[[alternative HTML version deleted]]