Go to TogaWare.com Home Page. Data Science Desktop Survival Guide
by Graham Williams
Duck Duck Go



CLICK HERE TO VISIT THE UPDATED SURVIVAL GUIDE

Labels

20200422 The x-axis and y-axis labels can be specified using ggplot2::xlab() and ggplot2::ylab():

  ...
  xlab("Minimum Temperature") +
  ylab("Maximum Temperature") +
  ...

The labels can alternatively be specified using ggplot2::labs() which also accepts many other label options too:

  ...
  labs(x="Minimum Temperature",
       y="Maximum Temperature",
       colour="Rain")
  ...

A quick way to remove a label is to specify NULL:

  ...
  xlab(NULL) +
  ...

See Section 10.24 to remove the label, ticks, and text.


Support further development by purchasing the PDF version of the book.
Other online resources include the GNU/Linux Desktop Survival Guide.
Books available on Amazon include Data Mining with Rattle and Essentials of Data Science.
Popular open source software includes rattle and wajig.
Hosted by Togaware, a pioneer of free and open source software since 1984.
Copyright © 2000-2020 Togaware Pty Ltd. . Creative Commons ShareAlike V4.