You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
geom_bar does not support plotting with negative heights. Instead, bars with negative heights are rendered as having zero height.
Example:
import ggplotnim
let trials =@["A", "B", "C", "D", "E"]
let values =@[1.0, 0.5, 0, -0.5, -1.0]
var df =newDataFrame()
df["Trial"] =toColumn(trials)
df["Value"] =toColumn(values)
ggplot(df, aes(x="Trial", y="Value")) +geom_bar(stat="identity", position="identity") +ggsave("demo.png")
An equivalent with R/ggplot would produce produce a bar plot with five bars, the first two extending above the x axis, the third sitting on it, and the last two below. However, this snippet instead produces this:
The text was updated successfully, but these errors were encountered:
Issue:
geom_bar
does not support plotting with negative heights. Instead, bars with negative heights are rendered as having zero height.Example:
An equivalent with R/ggplot would produce produce a bar plot with five bars, the first two extending above the x axis, the third sitting on it, and the last two below. However, this snippet instead produces this:
The text was updated successfully, but these errors were encountered: