R/pl.3txt.R

Defines functions pl.3txt

Documented in pl.3txt

###############################################################################################
##### scatter plot with text overlay
###############################################################################################

#' @name pl.3txt
#' @aliases pl.3txt
#' @title Scatter plot with text overlay
#' @description Generate a scatter plot with text overlay. This plot is to better show the effect of
#' the text variable in the domain of x and y variable.
#' @usage pl.3txt(x,y,txt,title)
#' @param x :a numeric vector
#' @param y :a numeric vector
#' @param txt :a vector used as labels
#' @param title :title of the graph
#' @examples pl.3txt(mtcars[,1], mtcars[,3], row.names(mtcars),"mpg v. cyl")


pl.3txt <- function(x, y, txt, title){

  plot(x, y, type = "n", main = title); text(x,y,txt, cex = .5)

}

Try the PMmisc package in your browser

Any scripts or data that you put into this service are public.

PMmisc documentation built on May 1, 2019, 9:57 p.m.