To enlarge the text size of the plot in ggcuminc, you can add the "theme" function and adjust the "axis.text" and "axis.title" arguments. For example:
library(ggplot2)
library(ggcuminc)
# create data
df <- data.frame(x = rpois(100, 5), y = rpois(100, 5))
# plot cumulative incidence
ggcuminc(df, "x", "y")
# enlarge text size
ggcuminc(df, "x", "y") +
theme(axis.text = element_text(size = 12),
axis.title = element_text(size = 14))
In the above example, we added the "theme" function and adjusted the text size of the x and y axis labels using the "axis.title" argument and the text size of the tick labels using the "axis.text" argument. You can adjust the size to your preferred value.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-02-02 11:00:00 +0000
Seen: 10 times
Last updated: Oct 19 '21
What does the error "Bar 0; array size is too large, maximum size is 100000" mean?
How can I transfer the dimensions of a ChartArea from one PowerPoint chart to another?
The size of the plot returned by df.hist() is not the desired one.
How can I sort products that have the size attribute available in stock in Woocommerce?
What is the appropriate size for App store screenshots on a 6.5" display?
How to provide Arduino input parameters of any size without creating a struct?