This wasn’t documented anywhere (maybe it’s obvious?), but here is a short example using the included ‘bot’ dataset.
# Look at the existing factors, stored in bot@fac
# Add another arbitrary factor
# Put your new factors back into the object
# Look at your data based on the new factor