Question: explain df < - DataBreach library ( ggplot 2 ) set.seed ( 1 0 0 ) prob _ pois < - data.frame ( ' data

explain df <- DataBreach
library(ggplot2)
set.seed(100)
prob_pois <- data.frame('data'= rpois(1000,100))
result <- prob_pois %>% ggplot()+
geom_histogram(aes(x = data,
y = stat(count / sum(count))),
color = 'red',
binwidth =1)+
geom_vline(xintercept =0,
size =100,
linetype = 'dashed',
color = 'grey')+
theme_bw()+
labs(x = 'Breach Lifecycle Range',
y = 'Washingtonians Affected Range',
title ='1000 samples of Pois(lambda =100)')
print(result)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!