Learn R Programming

explore (version 1.3.4)

plot_text: Plot a text

Description

Plots a text (base plot) and let you choose text-size and color

Usage

plot_text(text = "hello world", size = 1.2, color = "black", ggplot = FALSE)

Value

Plot

Arguments

text

Text as string

size

Text-size

color

Text-color

ggplot

return a ggplot-object? (or base plot)

Examples

Run this code
plot_text("hello", size = 2, color = "red")

Run the code above in your browser using DataLab