convert_to_grob {grobblR} | R Documentation |
Takes in an object, and converts it to a grob based on inputted aesthetics arguments.
Description
Takes in an object, and converts it to a grob based on inputted aesthetics arguments.
Usage
convert_to_grob(x, height, width, aes_list = ga_list())
Arguments
x |
The object which needs to be converted to a grob. Must be either:
A data.frame/matrix, the file name of a .png image, a character string, a
vector, a ggplot object, or |
height |
The numeric height in mm of the desired grob. |
width |
The numeric width in mm of the desired grob. |
aes_list |
The list outputted by Possible elements for character strings, matrices and images can be found in |
Value
A grob of x with aesthetics based on the aes_list parameter.
[Package grobblR version 0.2.1 Index]