klasyfikator polish
This commit is contained in:
commit
77643a111c
BIN
Dokumentacja.pdf
BIN
Dokumentacja.pdf
Binary file not shown.
@ -21,7 +21,7 @@ klasyui <- function(id){
|
|||||||
max = 100,
|
max = 100,
|
||||||
value = 1),
|
value = 1),
|
||||||
selectInput("select1",strong("Zaburzenia polykania"),choices = list("Nie"=0,"Tak"=1),selected=0),
|
selectInput("select1",strong("Zaburzenia polykania"),choices = list("Nie"=0,"Tak"=1),selected=0),
|
||||||
selectInput("select2",strong("Ból przy polykaniu"),choices = list("Nie"=0,"Tak"=1),selected=0),
|
selectInput("select2",strong("Bol przy polykaniu"),choices = list("Nie"=0,"Tak"=1),selected=0),
|
||||||
selectInput("select3",strong("Kaszel"),choices = list("Nie"=0,"Tak"=1),selected=0),
|
selectInput("select3",strong("Kaszel"),choices = list("Nie"=0,"Tak"=1),selected=0),
|
||||||
selectInput("select4",strong("Dusznosci i swiszczacy oddech"),choices = list("Nie"=0,"Tak"=1),selected=0),
|
selectInput("select4",strong("Dusznosci i swiszczacy oddech"),choices = list("Nie"=0,"Tak"=1),selected=0),
|
||||||
selectInput("select5",strong("Odkrztuszanie wydzieliny z krwia i chrypka"),choices = list("Nie"=0,"Tak"=1),selected=0),
|
selectInput("select5",strong("Odkrztuszanie wydzieliny z krwia i chrypka"),choices = list("Nie"=0,"Tak"=1),selected=0),
|
||||||
@ -60,7 +60,7 @@ klasyserver <- function(input, output,session) {
|
|||||||
}
|
}
|
||||||
#print(pi*100)
|
#print(pi*100)
|
||||||
z=100-(k+p+pi)/3
|
z=100-(k+p+pi)/3
|
||||||
x=c("Rak krtani","Rak piersi","Rak płuc","Zdrowy")
|
x=c("Rak krtani","Rak piersi","Rak pluc","Zdrowy")
|
||||||
y=c(k,pi,p,z)
|
y=c(k,pi,p,z)
|
||||||
d=data.frame(x,y)
|
d=data.frame(x,y)
|
||||||
print(d)
|
print(d)
|
||||||
@ -68,7 +68,7 @@ klasyserver <- function(input, output,session) {
|
|||||||
|
|
||||||
g=ggplot(d, aes(x,y,fill=x))+
|
g=ggplot(d, aes(x,y,fill=x))+
|
||||||
geom_col()+
|
geom_col()+
|
||||||
labs(x="",y="Prawdopodobieństwo [%]")
|
labs(x="",y="Prawdopodobienstwo [%]")
|
||||||
ggplotly(g)
|
ggplotly(g)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user