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 NA (for an empty grob).

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 ga_list which contains elements to adjust aesthetics to the grob of x. Different type of grobs have different types of elements of this list which will affect its aesthetics.

Possible elements for character strings, matrices and images can be found in ga_list.

Value

A grob of x with aesthetics based on the aes_list parameter.


[Package grobblR version 0.2.1 Index]