Check out example codes for "ggplot - blank title of axis". It will help you in understanding the concepts better.

Code Example 1

p + theme(axis.title.x = element_blank(),
          axis.title.y = element_blank())

Learn ReactJs, React Native from akashmittal.com