directlabels.r-forge.r-project.org
directlabels documentation - lars
http://directlabels.r-forge.r-project.org/docs/lineplot/plots/lars.html
Lineplot - example - lars. Data(prostate,package="ElemStatLearn") pros - subset(prostate,select=-train,train= TRUE) ycol - which(names(pros)= "lpsa") x - as.matrix(pros[-ycol]) y - pros[ ycol] library(lars) fit - lars(x,y,type="lasso") beta - scale(coef(fit),FALSE,1/fit$normx) arclength - rowSums(abs(beta) library(reshape2) path - data.frame(melt(beta),arclength) names(path)[1:3] - c("step","variable","standardized.coef") library(ggplot2) p - ggplot(path,aes(arclength,standardized.coef,co...Positioning M...
directlabels.r-forge.r-project.org
directlabels documentation - smart.grid
http://directlabels.r-forge.r-project.org/docs/scatterplot/posfuns/smart.grid.html
Scatterplot - Positioning Method - smart.grid. Search the plot region for a label position near the center of each point cloud. Smartgrid - list(" big.boxes. Data(mpg,package="ggplot2") m - lm(cty displ,data=mpg) mpgf - fortify(m,mpg) library(lattice) library(latticeExtra) p - xyplot(cty hwy manufacturer,mpgf,groups=class,aspect="iso", main="City and highway fuel efficiency by car class and manufacturer") layer (panel.abline(0,1,col="grey90") direct.label(p,"smart.grid"). Data(normal.l2.cluster,p...
directlabels.r-forge.r-project.org
directlabels documentation - last.polygons
http://directlabels.r-forge.r-project.org/docs/lineplot/posfuns/last.polygons.html
Lineplot - Positioning Method - last.polygons. Draw a speech polygon to the last point. Lastpolygons - polygon.method. 01, "left", "right"). Data(BodyWeight,package="nlme") library(lattice) p - xyplot(weight Time Diet,BodyWeight,groups=Rat,type='l', layout=c(3,1),xlim=c(-10,75) direct.label(p,"last.polygons"). Data(Chem97,package="mlmRev") library(lattice) p - qqmath( gcsescore gender,Chem97,groups=factor(score), type=c('l','g'),f.value=ppoints(100) direct.label(p,"last.polygons"). Data(prostate,package=...
directlabels.r-forge.r-project.org
directlabels documentation - ridge
http://directlabels.r-forge.r-project.org/docs/lineplot/plots/ridge.html
Lineplot - example - ridge. Draw a box with the label inside, at the point furthest away from the plot border and any other curve. Direct.label(p," angled.boxes. Label first points, bumping labels up if they collide. Direct.label(p," first.bumpup. Positioning Method for the first of a group of points. Direct.label(p," first.points. Draw a speech polygon to the first point. Direct.label(p," first.polygons. Label first points from QP solver that ensures labels do not collide. Direct.label(p," lines2. Label...
directlabels.r-forge.r-project.org
directlabels documentation - home
http://directlabels.r-forge.r-project.org/docs/index.html
Welcome to the directlabels package documentation website, where you can find illustrations of how to use direct labels in common statistical graphics. Furthermore, you can learn how to construct Positioning Methods by looking at the examples. All the examples on this site should be directly executable in R after installing and loading the directlabels package. To get started, execute this R code:. Please contact Toby Dylan Hocking. If you are using directlabels. Or have ideas to contribute, thanks!
directlabels.r-forge.r-project.org
directlabels documentation - first.qp
http://directlabels.r-forge.r-project.org/docs/lineplot/posfuns/first.qp.html
Lineplot - Positioning Method - first.qp. Label first points from QP solver that ensures labels do not collide. Firstqp - vertical.qp. Data(BodyWeight,package="nlme") library(lattice) p - xyplot(weight Time Diet,BodyWeight,groups=Rat,type='l', layout=c(3,1),xlim=c(-10,75) direct.label(p,"first.qp"). Data(Chem97,package="mlmRev") library(lattice) p - qqmath( gcsescore gender,Chem97,groups=factor(score), type=c('l','g'),f.value=ppoints(100) direct.label(p,"first.qp"). Data(prostate,package="ElemStatLearn")...
directlabels.r-forge.r-project.org
directlabels documentation - qp.labels
http://directlabels.r-forge.r-project.org/docs/utility.function/posfuns/qp.labels.html
Utility.function - Positioning Method - qp.labels. Use a QP solver to find the best places to put the points on a line, subject to the constraint that they should not overlap. Qplabels("y","bottom","top") direct.label(no.leg, no.tiebreak) # Look at the weird labels in the upper left panel. The E curve is # above the FN curve, but the labels are the opposite! X","y") tiebreak - list(" first.points. Cex=2, " calc.boxes. H=125*h), " calc.borders. X","y"), ylimits. Tiebreak.lim - list(" first.points. Documen...
directlabels.r-forge.r-project.org
directlabels documentation - last.qp
http://directlabels.r-forge.r-project.org/docs/lineplot/posfuns/last.qp.html
Lineplot - Positioning Method - last.qp. Label last points from QP solver that ensures labels do not collide. Lastqp - vertical.qp. Data(BodyWeight,package="nlme") library(lattice) p - xyplot(weight Time Diet,BodyWeight,groups=Rat,type='l', layout=c(3,1),xlim=c(-10,75) direct.label(p,"last.qp"). Data(Chem97,package="mlmRev") library(lattice) p - qqmath( gcsescore gender,Chem97,groups=factor(score), type=c('l','g'),f.value=ppoints(100) direct.label(p,"last.qp"). Data(prostate,package="ElemStatLearn") pros...
brunalab.org
Resources – The Bruna Lab | UF
http://brunalab.org/resources
The Bruna Lab UF. Emilio m. bruna. Datasets & code. TEC Lab Meeting Schedule. Apps for field biology. Tools & Resources. Biotropica & ATBC. Ben Bolker’s Excellent Book. A simple and very useful R-Gui: NPPtoR. Note you must also install NPP. R Studio – my favorite R Gui: link. Of books and web sites. Podcasts and online tutorials From Trinity College Dublin: link. Laura Suttle’s Video R Tutorials: link. Videos from Coursera’s 4 week R course: link. Smith’s aRgh: angry newcomers guide to R link. New Year&#...