search for: datn

Displaying 6 results from an estimated 6 matches for "datn".

Did you mean: data
2018 Apr 04
0
Plot data in sequence
Hi, Thanks for the reproducible example. Looking at str(datn) would give you a clue. STATUS is a factor because it contains character values. Factor levels by default are alphabetical with numbers first, but you can change those. > str(datn) 'data.frame': 36 obs. of 3 variables: $ LEVEL : Factor w/ 4 levels "DIPLOMA","MATRIC&quot...
2018 Apr 04
2
Plot data in sequence
Hi r-users, I would like to draw line plots. However, the plot starts from 11121 data and plot data ENTRY last in the plot. Here is the code and data. datn <- read.table(header=TRUE, text=' LEVEL STATUS CGPA DIPLOMA ENTRY 3.32 DIPLOMA 11121 2.91 DIPLOMA 11122 2.90 DIPLOMA 12131 2.89 DIPLOMA 12132 2.89 DIPLOMA 13141 2.93 DIPLOMA 13142 2.96 DIPLOMA 14151 2.76 DIPLOMA 14152 2.73 STPM ENTRY 2.77 STPM 11121 3.26 STPM 11122 3.30 STPM 12131 3.2...
2012 Mar 20
1
overriding "summary.default" or "summary.data.frame". How?
...variable, and the results are returned in a matrix that is easy to ## use in further analysis. summarizeNumerics <- function(dat, alphaSort = TRUE, digits = max(3, getOption("digits") - 3)){ if (!is.data.frame(dat)) dat <- as.data.frame(dat) nums <- sapply(dat, is.numeric) datn <- dat[ , nums, drop = FALSE] if (alphaSort) datn <- datn[ , sort(colnames(datn)), drop = FALSE] sumdat <- apply(datn, 2, stats::quantile, na.rm=TRUE) sumdat <- rbind(sumdat, mean= apply(datn, 2, mean, na.rm=TRUE)) sumdat <- rbind(sumdat, sd= apply(datn, 2, sd, na.rm=TRUE))...
2010 Oct 08
3
Import Multiple csv files and merge into one Master file
Dear R Group: How to import multiple csv files and merge into one dataset. Thanks and Regards, Xing [[alternative HTML version deleted]]
2010 Oct 21
1
gam plots and seWithMean
...am<-t*exp(linp) y<-rpois(500,lam) sum(y) table(y) #fit the data without d by glm and with d by gam f1<-glm(y~offset(log(t))+x1+x2+x3,poisson) f2<-gam(update.formula(as.formula(f1),~.+s(d)),poisson) anova(f1,f2) summary(f2) plot(f2) #the solid line s(d) dat<-data.frame(t,d,x1,x2,x3) datn<-transform(dat,d=0) dif<-predict(f2)-predict(f2,datn) cdif<-dif-mean(dif) points(d,cdif,cex=0.5,col=rgb(0,1,0,0.2)) #another approach to the solid line s(d) devAskNewPage(ask=T) plot(f2) premat2<-PredictMat(f2$smooth[[1]],data=dat) dim(premat2) pars<-f2$coef pars2<-pars[5:13] par...
2015 Sep 22
2
Excel vs. R
Antes que nada puedes encontrar documentación sobre la librería ggplot2 que es la que yo uso para gráficos como el que quieres hacer, aunque hay otros paquetes que te pueden ser útiles: http://docs.ggplot2.org/current/ Adicionalmente a lo dicho por Carlos aquí te van otros ejemplos (los agrego porque no nos proporcionaste datos con lo que pudiéramos ver mejor lo que buscas):