To plot qlrdf
using ggplot2, first, we need to ensure that qlrdf
contains the necessary columns for plotting.
main.r222 chars7 lines
The values column qlrdf$values
contains the actual f-statistics that can be plotted. We can then use ggplot2
to create a scatter plot.
main.r129 chars4 lines
This will create a scatter plot with the F-statistics on the y-axis and the index on the x-axis.
Note that in the original code provided, qlrdf$x
was set to null, so we had to generate an index column to use as the x-axis variable.
gistlibby LogSnag