June 2017
Beginner to intermediate
576 pages
15h 22m
English
If you prefer to use ggplot to plot your results, load the ggplot2 package to run your plots directly against the Spark dataframe. You will have more of an opportunity for further customization:
Here is a basic ggplot which corresponds to the histogram() functions illustrated above:
require(ggplot2) plot <- ggplot(age_hist, aes(x = centroids, y = counts)) + geom_bar(stat = "identity") + xlab("mass") + ylab("Frequency") plot
