Dear R People:
in the function loess, how can one add the weight of the points which is
contained in the variable "nbtotal"
Data :
Nbtotal P_alim H_eau
xyplot(P_alim ~ H_eau,
auto.key = list(points = T, lines = F),data = data,
type = c("p", "smooth"), span=.2,
scales = "free", layout = c(1, 1),
main="",
xlab="Hauteur d'eau (en m)",
ylab="taux d'alimentation")
the graph xyplot is not modified if the weights term is added
xyplot(P_alim ~ H_eau,
auto.key = list(points = T, lines = F),data = data,
type = c("p", "smooth"), span=.2,weights=Nb_total,
scales = "free", layout = c(1, 1),
main="",
xlab="Hauteur d'eau (en m)",
ylab="taux d'alimentation")
Thanks in advance,
Alain ponsero
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html