[R] (sans objet)
    PONSERO Alain 
    aponsero at cabri22.com
       
    Mon Jan  9 07:54:02 CET 2006
    
    
  
 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
    
    
More information about the R-help
mailing list