[R] suppress labels in lattice barchart

Naresh Gurbuxani naresh_gurbuxani at hotmail.com
Sun Oct 16 01:43:31 CEST 2016


I would like to print a barchart without labels for categorical variables.  What change should be made to below command?

Thanks,
Naresh

boy.age <- data.frame(name = c("alpha", "beta", "charlie", "gerald"), age = c(7, 9, 6, 5))

boy.age$name <- with(boy.age, reorder(name, age))

# draws with names on labels
barchart(name ~ age, data = boy.age, scales = list(y = list(alternating = FALSE)))

# draws with names on labels
barchart(name ~ age, data = boy.age, ylab = "")


More information about the R-help mailing list