Same number of rows and columns error
I am working with forestplot to present some data on several outcomes at once, grouped by a second factor. Unfortunately I am running into an issue due to the same number of rows and columns existing in the same plot. There are 7 types of drinking and 6 different health outcomes, plus an additional row for the title. The dataset that was read in is a grouped tibble (by drinking).
The legend is appearing correctly, with each data point assigned both a shape and a color. However, as you'll see below, the shapes are being assigned to each health outcome instead of to each type of drinking. So it seems that the function is unable to distinguish which graphical parameters should be mapped to which variables.
I found this in the documentation for prPopulateList but I'm not sure how to fix the issue:
Populate a list corresponding to matrix specs Description This function helps the forestplot to deal with different arguments for the confidence intervals.
Usage prPopulateList(elmnt, no_rows, no_depth, missing_rows, is.summary, summary) Arguments elmnt The element item/list/matrix. If a list it should be in the format [row][col], the function tries to handle this but in cases where the columns and rows are the same it will not know what is a column and what is a row.
Thank you for considering, -Max