search for: numberprov

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

Did you mean: numberprovs
2006 Mar 26
2
Problem with names() in a plot after ordering a data.frame. Syntax or stupidity?
...quot;NS","PE") Area <- c(1936113, 1365128, 1183085, 925186, 917741, 642317, 591670, 553556, 474391, 373872, 71450, 53338, 5660) # ------------------------Crude working program------------------------------ provs <- data.frame(Name, Pcode, Area) attach(provs) numberProvs <- length(Pcode) # This next step reverses the order of Pcode to make # the names match the sorted Area names(Area) <- rev(Pcode) Lines <- 1:numberProvs plot(sort(Area), Lines, pch=20, col="red", xlab = " Area", ylab= "Province or Territory&quo...