Questions tagged [statsplots.jl]
7 questions
2
votes
1 answer
Percentage axis in bar plot Julia
I am using this stacked bar plot example to create a stacked bar plot with a percentage axis. Here is some reproducible code:
using StatsPlots
measles = [38556, 24472, 14556, 18060, 19549, 8122, 28541, 7880, 3283, 4135, 7953, 1884]
mumps = [20178,…

Quinten
- 35,235
- 5
- 20
- 53
2
votes
1 answer
How to indicate intersection points on graph?
I am using Insertion and Merge sort and trying to indicate the intersection point on the graph below. I found a possible solution on rosettacode, but a bit confusing for a newbie like me... Where should I look, do you guys know how to indicate it in…

wrisurcuriosity
- 59
- 5
2
votes
0 answers
Swap Axes of Violin plot
I am trying to create Violin Plots using the StatsPlots.jl library.
However, I would like to have the returned Violin plot to be horizontal instead of vertical as I want to show the distribution of a variable (e.g. Temperature) for different…

niltsz
- 75
- 5
1
vote
1 answer
How to have a customized legend in the x axis when using groupedbar by StatsPlots
As mentioned, I wanted to plot a groupedbar using StatsPlots in Julia. Here is my code:
legends = repeat(["myopic baseline", "vfa", "lvfa", "nnvfa", "nnvfa with attention"], outer=2)
training_time_per_step = [0., 9.817792895793914,…

PokeLu
- 767
- 8
- 17
1
vote
1 answer
Julia using StatsPlots.jl for grouped bar plot. How to get a legend on the bar plot?
I'm trying to plot some data using Julia, but I'm quite new to Data visualisation in Julia. I have code that looks like this:
x_data = [5 10;
15 20]
groupedbar( ["0.2", "0.8"], x_data, xlabel = "X-axis",
ylabel="Y-axis")
Each x-value…

React_validatorMan
- 11
- 2
1
vote
1 answer
Half violin plot in Julia
I would like to plot a half violin plot instead of a full violin plot. Here is some reproducible code which creates full violin plots:
using StatsPlots
StatsPlots.violin(repeat(["A", "B"],outer=100),randn(300))
Output:
As you can see it creates a…

Quinten
- 35,235
- 5
- 20
- 53
1
vote
1 answer
A function for boxplot a column of dataframe in Julia
In Julia, one can draw a boxplot using StatsPlots.jl. Assuming There is a DataFrame named df, we can draw a boxplot for one of its columns named a by this:
julia> @df df boxplot(["a"], :a, fillalpha=0.75, linewidth=2)
I want to put the same…

Shayan
- 5,165
- 4
- 16
- 45