plot chic gemacht
This commit is contained in:
@@ -2,14 +2,15 @@ library(ggplot2); library(RODBC)
|
|||||||
|
|
||||||
channel <- odbcConnect("ebv_d29", uid = "RECKLINGK", pwd = "stapler13")
|
channel <- odbcConnect("ebv_d29", uid = "RECKLINGK", pwd = "stapler13")
|
||||||
test <- sqlQuery(channel, stringsAsFactors=F,
|
test <- sqlQuery(channel, stringsAsFactors=F,
|
||||||
"SELECT FZSTAM.FIRNR, FZSTAM.FAZFI
|
"SELECT FZSTAM.FIRNR, FZSTAM.FAZID, FZSTAM.FAZFI, FZSTAM.BAUJJ
|
||||||
FROM FZSTAM
|
FROM FZSTAM
|
||||||
WHERE FZSTAM.FIRNR = 1
|
WHERE FZSTAM.FIRNR = 1
|
||||||
LIMIT 1000
|
LIMIT 1000
|
||||||
")
|
")
|
||||||
odbcCloseAll(); rm(channel)
|
odbcCloseAll(); rm(channel)
|
||||||
|
|
||||||
ggplot(test, aes(x=FAZFI)) +
|
ggplot(test, aes(x=FAZID)) +
|
||||||
geom_bar(color="blue", fill=rgb(0.1,0.4,0.5,0.7) ) +
|
geom_line(aes(y=FAZFI)) +
|
||||||
|
geom_line(aes(y=BAUJJ), col="red") +
|
||||||
scale_fill_hue(c = 40) +
|
scale_fill_hue(c = 40) +
|
||||||
theme_bw()
|
theme_bw()
|
||||||
|
|||||||
Reference in New Issue
Block a user