Displaying 3 results from an estimated 3 matches for "ybreaks".
Did you mean:
breaks
2007 Dec 11
2
ggplot - Setting the y-scale in a bar plot
...on Windows.
Thanks for any help,
Pedro
I attach below the code I am using:
plotdata<-data.frame(x=factor(2:8), y=0.1*(2:8))
plot1<-ggplot()
plot1<-plot1+layer(data=plotdata,
mapping=aes_string(x='x',y='y'),geom='bar', stat='identity')
RangeY <-c(0,1)
YBreaks <- (0:10)*diff(RangeY)/10
YTickLabels<- as.character(YBreaks)
plot2 <- plot1 + scale_y_continuous(limits=RangeY, breaks=YBreaks,
labels=YTickLabels, expand=c(0,0))
print(plot2)
2008 Oct 22
1
Spatstat help - quadratcount query
Hi all,
I am using quadratcount in spatstat to divide a window containing a
point pattern into a grid of quadrats containing the intensity of points
in each quadrat. My data is in UTM co-ordinates. My window is defined
as follows:
>p15<-ppp(x,y,window=owin(c(341710,342100),c(3126465,3126780)),marks=NUL
L, checks=TRUE)
Giving me a distance of 390m in the 'x' direction and 315m in
2017 Nov 28
0
Extract all point in a quadrats by spatstat package
Hi,
With the following code i can divides window into quadrats and counts the numbers of points in each quadrat.
library(spatstat)
X <- runifpoint(50)
quadratcount(X)
quadratcount(X, 4, 5)
quadratcount(X, xbreaks=c(0, 0.3, 1), ybreaks=c(0, 0.4, 0.8, 1))
qX <-? quadratcount(X, 4, 5)
plot(X)
plot(qX, add=TRUE)
But I want to mark each? quadrats? and select/ extract only those points by selecting quadrats id .?
Can anyone plese help me regarding this issue ?
Thanks in advance .
Regards.............
Tanvir Ahamed
Stockholm, S...