I want to have cleaner names for the Y axes in my stratified graph below
Eg: Gender variable called "gender2", has two levels "Male", "Female". Upon plotting,
AGsex=Recur(exityrs,id,as.integer(anyhpv))~gender2
plotEvents(AGsex,xlab="Time in years",base_size=5,)
i get Recur object of subjects followup trajectories in study, with a reccurent event marked by a green dot I would like the stratified y axes to say "Male" and "female" only..would this be a feature of the plot function? I.e is there a easy way of doing this in the plot code itself instead of having to create temporary data frames etc
This functionality seems to be hard coded into the
plotEvents()function so I don't think there's a built-in option for this. However, since it returns aggplotobject, you can modify the facetting layer and edit the labels:gives: