Skip to main content

R - Programming project on "Rainfall Record"

R - Programming project on "Rainfall Record" 


# Source code
# RAINFALL RECORD PROJECT 
# 1.Read Data...
data <- data.frame(
  sr.no = c(1:10),
  year = c(2011:2020),
  time = c(5,10,15,20,25,30,35,40,45,50),
  mm = c(21,22,23,24,25,26,27,28,29,30),
  stringsAsFactors = FALSE)
print(data)

# Display data using head...
head(data)
#structure data
Str(data) 

# 2. Display summary of data...
summary(data)
print(head(data))

# 3.display of important col
print(ncol(data))
print(nrow(data))

# 4.create histogram...
hist(x = data$time,xlab = "time",
     col = "black",
     border = "orange",
     breaks = 5,)


# 5.create piechart and 3D pie chart...
pie(data$year,data$time,col = rainbow(length(data$sr.no)),main = "piechart")

# 3D pie chart
pie3D(data$mm,labels = data$time,explode = 0.1,main = "Rainfall record 3D pie chart")

# 6.create boxplot
boxplot(data$mm, data$time,
        xlab = "Year",
        ylab = "Time",
        main = "Rainfall Record")

# 7.Create a scatterplot...
plot(x = data$year,y = data$time,
     xlab = "year",
     ylab = "rainfall",
     xlim = c(2011,2020),
     ylim = c(5,50),
     main = "Rainfall Record"
)

# 8.create a bar chart
barplot(data$mm,data$time,
        xlab = "years",
        ylab = "time in hour",
        main = "Rainfall",
        border = "black")

# 9.Create a line graph
plot(data$year,type = "o")

Comments

Popular posts from this blog

Classification of Networks Based on Geographical Classification

               ***Classification of Networks Based on Geographical Classification***                   In this section ,we will discuss the following categories of networks.                                                                                                                 PAN ...

Types of server, all types of server file server, print server, application server, database server, message server information.

                                                                                                                    Types of Servers Hi today’s blog is on types of Servers. You can take knowledge of types of servers blog in marathi मराठी. Link https://myblogs0727.blogspot.com/2020/05/blog-post_11.html?m=1 Servers are those who connects us to the internet or links us to a good internet (net) service that we uses the connection of the service.        Server is the thing that serves the service to us i.e. end users, in other words it plays roll like servant which serves us ...

Simple java prime or not program

public class PrimeExample{     public static void main(String args[]){       int i,m=0,flag=0;         int n=3;//it is the number to be checked       m=n/2;         if(n==0||n==1){      System.out.println(n+" is not prime number");         }else{      for(i=2;i<=m;i++){           if(n%i==0){            System.out.println(n+" is not prime number");            flag=1;            break;           }          }          if(flag==0)  { System.out.println(n+" is prime number"); }     }//end of else   }     }