Learn R Programming

YRmisc (version 0.1.6)

pl.3txtgg: Scatter plot with text overlay with ggplot2

Description

Generate a scatter plot with text overlay with ggplot2. This plot is to better show the effect of the text variable in the domain of x and y variable.

Usage

pl.3txtgg(x,y,txt,size,title,xlab,ylab)

Arguments

x

:a numeric vector

y

:a numeric vector

txt

:a vector used as labels

size

:text size, which default is set as 3

title

:title of the graph

xlab

:x-axis label

ylab

:y-axis label

Examples

Run this code
# NOT RUN {
pl.3txtgg(mtcars[,1], mtcars[,3], row.names(mtcars), 3,"mpg v. cyl", "mpg", "cyl")
# }

Run the code above in your browser using DataLab