I fitted Cox regression and would like to plot a graph with 4 age groups and risk table for them. I expect to see in a risk table 4 SEPARATE counts for each age group (number at risk). So, the question is how to get risk table with 4 SEPARATE rows (with numbers for each of the 4 age groups).
Actual behavior
But I get only JOINT counts for all groups plus ggsurvplot function prints a warning: "The length of legend.labs should be 1".
If I reduce legend.labs down to 1 value the warning changes to: "The length of legend.labs should be 4".
Expected behavior
I fitted Cox regression and would like to plot a graph with 4 age groups and risk table for them. I expect to see in a risk table 4 SEPARATE counts for each age group (number at risk). So, the question is how to get risk table with 4 SEPARATE rows (with numbers for each of the 4 age groups).
Actual behavior
But I get only JOINT counts for all groups plus ggsurvplot function prints a warning: "The length of legend.labs should be 1".
If I reduce legend.labs down to 1 value the warning changes to: "The length of legend.labs should be 4".
Steps to reproduce the problem
session_info()