R/mgsplot.RLINE_receptors.R

Defines functions mgsplot.RLINE_receptors

Documented in mgsplot.RLINE_receptors

#' create simple reeptor plot on X-Y plane
#' 
#' @param data dataframe where first 2 columns are plotted X, Y, respectively
#'
#' @return ggplot object
#' 
#' @import ggplot2
#' 
#' @export mgsplot.RLINE_receptors
#########################################################################

mgsplot.RLINE_receptors <- function(data){

  p <- ggplot(data,aes(data[,1],data[,2]))+
    xlab(colnames(data)[1])+ylab(colnames(data)[2])+
    geom_point()
  
  return(p)
    
} #end function
michellegrace/mgs.dispersion documentation built on May 22, 2019, 9:55 p.m.