Radar graf: Urejanje label in njihovega prikaza na grafu
This commit is contained in:
parent
39dd9a9257
commit
6aa62b5249
@ -248,6 +248,11 @@ data <- read.csv2(
|
|||||||
data <-
|
data <-
|
||||||
subset(data,
|
subset(data,
|
||||||
!is.na(data$V2) | data$V2 < 0)
|
!is.na(data$V2) | data$V2 < 0)
|
||||||
|
|
||||||
|
# Because we will reverse the order
|
||||||
|
# client wopudl liek to have
|
||||||
|
# Label 1 at 12.00 in plot
|
||||||
|
data <- rbind( data[-1, ], data[1, ])
|
||||||
#--------------------------- // READ DATA // ------------------------#
|
#--------------------------- // READ DATA // ------------------------#
|
||||||
|
|
||||||
|
|
||||||
@ -264,7 +269,7 @@ mydf <-
|
|||||||
# Add names which will be displayed as labels in
|
# Add names which will be displayed as labels in
|
||||||
# chart and also their means in parentheses
|
# chart and also their means in parentheses
|
||||||
# Deljenje besed zaradi preglednosti
|
# Deljenje besed zaradi preglednosti
|
||||||
labels <- gsub('(.{1,20})(\\s|$)', '\\1\n', data$V1)
|
labels <- gsub('(.{1,18})(\\s|$)', '\\1\n', data$V1)
|
||||||
colnames(mydf) <- labels
|
colnames(mydf) <- labels
|
||||||
|
|
||||||
# Nastavitve fonta na željo naročnika
|
# Nastavitve fonta na željo naročnika
|
||||||
|
Loading…
x
Reference in New Issue
Block a user