search for: initial_val

Displaying 1 result from an estimated 1 matches for "initial_val".

Did you mean: initial_value
2009 Sep 12
1
Way to iteratively change line color and line style
...lished as the number of lines I will be adding to a plot will be changing over time. Thanks again for any insights and feedback. plot(1,1, xlim=c(1000,4000), ylim=c(100000,800000), col=0, xlab=c("Sq. Footage"), ylab=c("Cost ($)")) square_footage_values<-c(1000:4000) initial_val<-300 cost_per_square_footage_vals<-seq(from=100, to=200, by=10) for(ii in 1:length(cost_per_square_footage_vals)) { lines(square_footage_values, cost_per_square_footage_vals[ii]*square_footage_values) }