Displaying 11 results from an estimated 11 matches for "xplot".
Did you mean:
plot
2007 Nov 16
1
graphics - line resolution/pixelation going from R to windows metafile
...of the data, e.g.,
using a sequence of plot( ) and lines ( ) similar to those below
plot(dep12spp13ph1$DAYSWETm2,dep12spp13ph1$AFTERDECOMP,pch=dep12spp13ph1$spp,cex=0.75,ylab="Proportion
of biomass after leaching", xlab="Number of days in
wetland",xlim=c(0,250),ylim=c(0,1))
xplot<- 0:243
xplotbsk64deg1<-bs(xplot,knot=62,degree=1,Boundary.knots=c(0,243))
lines(xplot,exp(xplotbsk64deg1 %*%
ph1.decomp.75.bs$coef[c(1,2)]),col="blue")
lines(xplot,exp(xplotbsk64deg1 %*%
ph1.decomp.75.bs$coef[c(3,4)]),col="red")
and then attempt to copy the resulting g...
2013 Mar 12
1
Fine control of plot
Hi everyone.
I'm trying to create a graph where I could plot some lines on the right side. Here an example:
layout(matrix(c(1,2), 1, 2, byrow = TRUE), widths=c(6,2), heights=c(1,1))
x = 1:100y = rnorm(x)+xplot(x,y)
reg = lm(y~x)abline(reg, col = "red")
plot(1, type="n", axes=F, xlab="", ylab="", xlim = c(-1,1), ylim = c(min(y), max(x)))segments(-0.25,min(reg$fitted.values),0.25,min(reg$fitted.values))segments(-0.25,max(reg$fitted.values),0.25,max(reg$fitted.values)...
2012 Mar 23
2
show and produce PDF file with pdf() and dev.off( ) in function
Hi all,
I know how to use pdf() and dev.off() to produce and save a graph.
However, when I put them in a function say
myplot(x=1:20){
pdf("xplot.pdf")
plot(x)
dev.off()
}
the function work. But is there a way show the graph in R as well as saving
it to the workspace?
Thanks.
casper
-----
###################################################
PhD candidate in Statistics
School of Mathematics, Statistics and Actuarial Science, Unive...
2004 Apr 15
1
tapply() and barplot() help files for 1.8.1
...e % of YLLs for each group in the cause classification.
x <- tapply(z$yllperdth, z[, fld], sum)
totalYLLs <- sum(x)
x <- x / totalYLLs * 100
x <- sort(x)
## Plot the chart. horiz = TRUE makes it a bar instead of
## column chart. las = 1 prints the labels horizontally.
xplot <- barplot(x,
horiz = TRUE,
xlab = "Percent of YLLs",
las = 1)
New Version (as used with R 1.9.0):
## Calculate the % of YLLs for each group in the cause classification.
x <- tapply(z$yllperdth, z[, fld], sum)
total...
2013 Jan 04
1
group variables in classes
...use this script I have a
problem.
classes <- function(x, n){
s <- seq(0, ceiling(max(x)), by = n)
factor(n*findInterval(x, s), levels = s)
}
z<-sapply(tapply(t$d,t$plot,function(x) classes(t$d, 4)),table)
z<-cbind(z)
Thank you!
Initial data:
nr x y d plot plotn xplot yplot
121 162 50.26989 46.230 55.00 1 NA NA NA
120 160 43.05703 41.096 12.50 2 NA NA NA
1211 162 50.26989 46.230 55.00 2 NA NA NA
143 130 48.29959 59.406 42.00 2 NA NA NA
144 131 49.56329 55.866 79.50 2 NA NA NA
145 161 55.20783 50.04...
2011 Aug 02
1
Need to compute density as done by panel.histogram
...values of foo$x in the following
example will be welcome.
require(lattice)
set.seed(12345)
foo1 <-
data.frame(x=rnorm(100,0,0.1),grp=1,by=rep(1:2,each=50),by2=rep(1:2,times=50))
foo2 <-
data.frame(x=rnorm(100,2,1),grp=2,by=rep(1:2,each=50),by2=rep(1:2,times=50))
foo <- rbind(foo1,foo2)
xplot <- histogram(~x,data=foo, type='density')
PS: the present question relates to a workaround for another problem
previously submitted to the list (
https://stat.ethz.ch/pipermail/r-help/attachments/20110727/5f0a8853/attachment.pl).
[[alternative HTML version deleted]]
2008 Nov 19
1
Buggy trellis.focus() with xyplot ?
...nt the fix to work for any plot
with any window size, but I might be valuable information.
*** Questions:
- Is this a real bug ?
- Any suggestions for fixing it ?
- If it can't be fixed, is there a way around this bug ?
(For example, setting the margins to be zero and set a fixed size for the
xplot)
Thanks.
Daniel.
[[alternative HTML version deleted]]
2012 Sep 05
1
Refresh times very slow for simple plots.
Hello everybody,
On my system (R 2.15.1-4 on Debian Stable plus some updates), resizing graphic
windows (by stretching their borders with the mouse) takes one order of
magnitude more time than redrawing them (by running the command again).
For instance, the command ??plot(data.frame(rnorm(10), rnorm(10), rnorm(10)))??
is executed almost instantely, but if I resize the graphics window, it takes 3
2008 Jul 09
1
matplot help
Hi,
My question is how do I gain control over what values the X and Y axis show. Below is a sample plot I have made and want the X axis to represent a time vector with values taking the form Q1.60, Q2.60, Q3.60...Q1.90..etc...Currently the X axis starts with value 0 and increases by 1 through the end of the sample.
win.graph()
matplot(v.0,log.diff.v.6,type="l",lty=1, col=2,
2008 Dec 02
2
question about the tisPlot function in package tis
List,
I am using the 'tisPlot' function in Jeff Hallman's excellent tis package
and was hoping that someone could spare me from having to dig into the
code of his 'tisPlot' function. So far as I can tell, the preferred
method of controlling the plotting of the x-axis is using the 'xTickFreq'
and 'xTickSkip' options. Unfortunately, the where the data ends
2004 May 13
19
HTB MPU
Hi.
I wrote in a reply to a mail on here recently that you can''t set mpu
(minimum packet unit) on HTB as you can on CBQ.
I''ve just noticed that there is a patch on devik''s site which does mpu
and overhead.
http://luxik.cdi.cz/~devik/qos/htb/
For dsl users mpu is, for practical purposes going to be 106 - overhead
is still variable though, depending on packet size.