DEV Community

Mahesh K
Mahesh K

Posted on

1

Iris Dataset Analysis in R

In this post, we take a look at the Iris dataset in R.

This dataset was first published by UCI ML repository. And later heavily used by the R, Python and other data science communities in their testing.

Most of the data science students use the Iris for variety of reasons. Be it for plotting some of the basic plots. Another use case is with trying out some of the R and python functions which allow them to clean and manipulate data in this dataset.

Take a look at the below video if you prefer the video instructions.

Let's see how you can use it with RStudio. It comes preloaded with the RStudio so you should give it a shot.

Try the code below.

library(datasets)
data(iris)
summary(iris)

When you run the code you would get the results like this.

iris dataset - devnami

You can take a look at the raw dataset of Iris here.

If you use the plot function and manage to send entire iris dataset you would get multiple plots too.

for plotting you use the function.

plot(iris)

plot iris dataset

As you can see this dataset can be pretty handy for those who want to manipulate data while learning data analytics and data science as a part of your degree or maybe job.

I hope this helps anyone who is trying to learn the data science and exploring the dataset on their own.

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay