Generic function plot shows the points in a two-dimensional embedding or projection space with options for customization.

# S3 method for embedR
plot(embedding, ...)

Arguments

embedding

a numeric matrix containing a text embedding.

Value

The function returns a ggplot2 object.

Details

The function wraps around er_frame and plot.embedR_tbl.

References

Wulff, D. U., Aeschbach, S., Hussain, Z., & Mata, R. (2024). embeddeR. In preparation.

Examples

if (FALSE) {
# get embedding plot
neo$text %>%
  er_embed() %>%
  er_project() %>%
  plot()
}