Displaying 3 results from an estimated 3 matches for "hellisheidi".
2023 May 03
1
[External] Error in percentage stacked barplot
...uch for your reply. I went through the code and it worked. I was also able to change the colours.?
I was wondering if I can change the legend position; instead of being in the bottom to be on the left side.?
I tried the following but without any success
strip = FALSE
strip.right = TRUE
likert(t(hellisheidi), ReferenceZero=.5, xlab="X-lab", ylab="Y-lab", main="Stacked bar chart", col=c("#E94E1B", "#F7AA4E", "#BEBEBE", "#6193CE", "#00508C", "#E94E1B", "#BEBEBE"), legend.position="left")
Once a...
2023 May 02
1
[External] Error in percentage stacked barplot
## you may need to install HH
install.packagess("HH")
library(HH)
hellisheidi <- read.table(text="
Component Sample1 Sample2 Sample3
CaO 45 52 48
SiO2 25 22 18
Al2O3 15 11 14
TiO2 6 5...
2023 May 02
1
Error in percentage stacked barplot
...? 4
When I tried the following functionbarplot(data,
+ main = "Stacked bar chart",
+ sub = "Subtitle",
+ xlab = "X-lab",
+ ylab = "Y-lab",
+ axes = TRUE, horiz = TRUE)
I got the following error
Error in barplot.default(hellisheidi, main = "Stacked bar chart", sub = "Subtitle", :
'height' must be a vector or a matrix
I also tried barplot(as.matrix(hellisheidi)) but what I was getting was the three stacked columns for Samples 1, 2 and 3 but I was getting an empty column for Component, instead of...