Amazing technological breakthrough possible @S-Logix pro@slogix.in

Office Address

  • #5, First Floor, 4th Street Dr. Subbarayan Nagar Kodambakkam, Chennai-600 024 Landmark : Samiyar Madam
  • pro@slogix.in
  • +91- 81240 01111

Social List

How to create hexbin plot in R?

Description

To create a hexbin plot using R programming.

Process

   Hexpin plot is a bivariate histogram.

   R Package : hexbin

   R Function : hexbin(x, y, xbins=, xlab= , ylab= , main= )

x , y : bivariate vectors

xbins : number of bins partitioning the range of x

xlab : Label for x

xlab : Label for y

Main : title of the graph

Sapmle Code

#hexbin plot
input<-hexbin(y~x)
plot(input)

#Adding xbins
input_1<-hexbin(y~x,xbins=10)
plot(input_1)

#Adding Labels
plot(input_1,xlab=”Sepal Length”, ylab=”Petal Length”,main=”Hexbin Plot”)

Screenshots
create hexbin plot in R
hexbin plot