library(formattable)
formattable(df)
| соленость | планктон |
|---|---|
| 10 | 40 |
| 30 | 270 |
| 50 | 0 |
| 60 | 70 |
| 65 | 60 |
| 70 | 50 |
| 75 | 45 |
| 80 | 35 |
| 85 | 160 |
| 90 | 300 |
| 95 | 180 |
##Котик смотрит на рыбок также как ученые на планктон
This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.
When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:
summary(df)
## соленость планктон
## Min. :10.00 Min. : 0.0
## 1st Qu.:55.00 1st Qu.: 42.5
## Median :70.00 Median : 60.0
## Mean :64.55 Mean :110.0
## 3rd Qu.:82.50 3rd Qu.:170.0
## Max. :95.00 Max. :300.0
library(ggplot2)
library(plotly)
library(readxl)
df <- read_excel ("дз6.Корепанова.xlsx")
p<- ggplot(df, aes(соленость, планктон)) +
geom_point(color ="blue") +
geom_line ()+
theme_classic() +
labs(y = "соленость",
x = "планктон",
title = "График зависимости колличества планктона от засоленности ") +
theme_bw()
plotly::ggplotly(p)