geom_text
using TidierPlots
using DataFrames
df = DataFrame(
x = [1,1,2,2],
y = [1,2,1,2],
t = ["A", "B", "C", "D"]
)
ggplot(df, @aes(x=x, y=y, text=t, color=t)) + geom_text()
ggplot(df, @aes(x=x, y=y, text=t, color=t)) +
geom_text(fontsize=24, align=(:left, :bottom), font=:bold) +
geom_point() +
lims(x = (0, 3), y = (0, 3))
ggplot(df, @aes(x=x, y=y, text=t, color=t)) + geom_label()
ggplot(df, @aes(x=x, y=y, text=t, color=t)) +
geom_label(fontsize=24, align=(:left, :bottom), font=:bold) +
geom_point() +
lims(x = (0, 3), y = (0, 3))
This page was generated using Literate.jl.