Following are the key plots described later in this article:
Following is the description for above mentioned plots along with code examples based on base R package. Note that each of the these plots could be done using different commands when using ggplot2 package.
hist(USArrests$UrbanPop, main="Histogram - Urban Population", xlab="Urban Population")
plot( variableAlongXAxis, variableAlongYAxis, data="DataSet", main="Plot Title", xlab="Label for X-Axis", ylab="Label for Y Axis" )
# Following command can as well be used
plot( responseParameter ~ predictorParameter, data="DataSet", main="Plot Title", xlab="Label for X-Axis", ylab="Label for Y Axis" )
Lets take an example from default data available in R package. Following R command prints the Scatterplot shown below:
plot( pressure ~ temperature, data=pressure, main="Pressure vs Temperature", xlab="Temperature", ylab="Pressure")
boxplot(pressure$pressure, main="Pressure Boxplot", ylab="Pressure")
Last updated: 28th April, 2024 As a data scientist, understanding the nuances of various cost…
Last updated: 28th April, 2024 In this post, you will learn the concepts related to…
Last updated: 26th April, 2024 In this blog post, we will discuss the logistic regression…
Last updated: 22nd April, 2024 As data scientists, we navigate a sea of metrics to…
Last updated: 22nd April, 2024 This post will teach you about the gradient descent algorithm…
Last updated: 19th April, 2024 Among the terminologies used in training machine learning models, the…