I am struggling with a simple histogram where scales of x-axis should be free. Each panel should only show the range relevant for data plotted in that panel.
library(lattice) library(AER) data(CreditCard) histogram( ~ card + reports, data = CreditCard, scales = "free") This code creates two panels of histograms. But each panel has x-axis range from 0 to 14 and "yes" and "no". I want a graph where "card" panel x-axis only has "yes" and "no" and where "reports" panel only has numbers 0 to 14. How can this code be fixed? Thanks, Naresh ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.