Displaying 1 result from an estimated 1 matches for "hnorm".
Did you mean:
rnorm
2007 Nov 15
2
Normalizing data
...se)?
This is my code so far:
#Input path
path <- "G:\\C\\Data txt\\1au300.txt"
#Dataverwerking
data <- read.table(path, header=TRUE)
rows <- length(data$height)
height <- data$height[1:rows]
dens <-density(height)
mean <- mean(height)
sd <- sd(height)
min <- min(hnorm)
max <- max(hnorm)
#Plot
par(new=FALSE)
curve(dnorm(x,m=mean,sd=sd),from=min,to=max, xlab="", ylab="", col="white",
lwd=2)
points(dens, type="h", col="grey" )
par(new=TRUE)
curve(dnorm(x,m=mean,sd=sd),from=min,to=max, xlab="Height (nm)"...