[R] (sans objet)

From: PONSERO Alain <aponsero_at_cabri22.com>
Date: Mon 09 Jan 2006 - 17:54:02 EST


 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



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Jan 09 18:10:21 2006

This archive was generated by hypermail 2.1.8 : Mon 09 Jan 2006 - 22:03:49 EST