R Split Data And Generate A Plot Showing Different Counts For Split

R Split Data And Generate A Plot Showing Different Counts For Split