pgxMetaplot | R Documentation |
This function provides the survival plot from individual metadata.
pgxMetaplot(data, group_id, condition, return_data = FALSE, ...)
data |
The data frame returned by the |
group_id |
A string specifying which column is used for grouping in the Kaplan-Meier plot. |
condition |
A string for splitting individuals into younger and older groups,
following the ISO 8601 duration format. Only used if |
return_data |
A logical value determining whether to return the metadata used for plotting. Default is FALSE. |
... |
Other parameters relevant to KM plot. These include |
The KM plot from input data
individuals <- pgxLoader(type="individuals",filters="NCIT:C3512")
pgxMetaplot(individuals, group_id="age_iso", condition="P65Y")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.