Learn R Programming

TRSbook (version 1.0.2)

flashy.plot: A flashy scatter plot

Description

This function tries to make a nicer plot than the one given by the plot() function for two quantitative variables

Usage

flashy.plot(x,y,my.factor, family = "Courier",xlab="",ylab="")

Arguments

x

numeric vector

y

numeric vector

my.factor

factor

family

font family for the title. Default is "Courier". Another choice can be, e.g., "HersheyScript"

xlab

character. x label

ylab

character. y label

Value

A flashy scatter plot

References

Chapter 11 (Descriptive Statistics) from the book: The R Software, Fundamentals of Programming and Statistical Analysis

See Also

plot

Examples

Run this code
# NOT RUN {
data(NUTRIELDERLY)
attach(NUTRIELDERLY)
gender <- as.factor(gender)
levels(gender) <- c("Male","Female")
flashy.plot(weight,height,gender,xlab="Height",ylab="Weight")
detach(NUTRIELDERLY)
# }

Run the code above in your browser using DataLab