piever / groupederrors.jl Goto Github PK
View Code? Open in Web Editor NEWPopulation data analysis in Julia
License: Other
Population data analysis in Julia
License: Other
Very briefly I think there is a problem in handling ShiftedArrays with mixed type Union{Float64, Missings.Missing}
MethodError: no method matching isnan(::ShiftedArrays.ShiftedArray{Union{Float64, Missings.Missing},1,Array{Union{Float64, Missings.Missing},1}})
Hi, I'm trying to plot data sorted by a categorical array.
Using this:
@> integration begin
@across :all
@x _.agegroup :discrete
@y _.haptic (mean, std)
@plot plot()
end
I get the error ERROR: No user recipe defined for CategoricalString{UInt32}
.
If I use string.(_agegroup), the dataframe is sorted alfabetically.
Should categoricalarray/categoricalstring support be added, or the workaround is easy? Thanks, Nicolò
See if there are performance benefits, otherwise consider removing.
So far only locreg
accepts two variables, it'd be interesting to set up a mechanism to accept an arbitrary number of columns in the analysis.
The @compare
macro interferes with analyses returning error bars.
Make sure it defaults to std
and add test that it matches @across :all
in discrete locreg
Cant run the tutorial, the function sem is not recognized.
"ERROR: UndefVarError: sem not defined"
Should I add another package maybe?
Best greetings.
1-cdf
is actually not the survival function in the discrete case, so hazard computation is not correct.
The first example in the readme leads to:
ERROR: UndefVarError: @> not defined
I am trying to plot some results using a simple terminal execution (e.g. julia Main.jl
) instead of the REPL. I have the following plotting code:
plotResult = @> dataDf begin
@splitby _.markedItems
@x _.XAxis
@across _.iteration
@y _.results (mean, sem)
@plot plot(show=true)
end
This works fine inside the REPL and opens a browser with the plot. However, when run directly I get the following error:
ERROR: LoadError: MethodError: no method matching json(::Array{Any,1})
The applicable method may be too new: running in world age 24366, while current world is 24367.
Closest candidates are:
json(::Any) at /Users/eddie/.julia/v0.6/JSON/src/Writer.jl:340 (method too new to be called from this world context.)
json(::Any, !Matched::Any) at /Users/eddie/.julia/v0.6/JSON/src/Writer.jl:341 (method too new to be called from this world context.)
Stacktrace:
[1] plotly_series_json(::Plots.Plot{Plots.PlotlyBackend}) at /Users/eddie/.julia/v0.6/Plots/src/backends/plotly.jl:705
[2] html_body(::Plots.Plot{Plots.PlotlyBackend}, ::Void) at /Users/eddie/.julia/v0.6/Plots/src/backends/plotly.jl:725
[3] #standalone_html#263(::String, ::Function, ::Plots.Plot{Plots.PlotlyBackend}) at /Users/eddie/.julia/v0.6/Plots/src/backends/web.jl:8
[4] (::Plots.#kw##standalone_html)(::Array{Any,1}, ::Plots.#standalone_html, ::Plots.Plot{Plots.PlotlyBackend}) at ./<missing>:0
[5] write_temp_html(::Plots.Plot{Plots.PlotlyBackend}) at /Users/eddie/.julia/v0.6/Plots/src/backends/web.jl:36
[6] standalone_html_window at /Users/eddie/.julia/v0.6/Plots/src/backends/web.jl:45 [inlined]
[7] _display at /Users/eddie/.julia/v0.6/Plots/src/backends/plotly.jl:756 [inlined]
[8] display(::Plots.PlotsDisplay, ::Plots.Plot{Plots.PlotlyBackend}) at /Users/eddie/.julia/v0.6/Plots/src/output.jl:145
[9] _do_plot_show(::Plots.Plot{Plots.PlotlyBackend}, ::Bool) at /Users/eddie/.julia/v0.6/Plots/src/output.jl:152
[10] _plot!(::Plots.Plot{Plots.PlotlyBackend}, ::Dict{Symbol,Any}, ::Tuple{Array{Float64,1},Array{Float32,1}}) at /Users/eddie/.julia/v0.6/Plots/src/plot.jl:242
[11] #plot#145(::Array{Any,1}, ::Function, ::Array{Float64,1}, ::Vararg{Any,N} where N) at /Users/eddie/.julia/v0.6/Plots/src/plot.jl:56
[12] (::RecipesBase.#kw##plot)(::Array{Any,1}, ::RecipesBase.#plot, ::Array{Float64,1}, ::Array{Float32,1}, ::Vararg{Array{Float32,1},N} where N) at ./<missing>:0
[13] #plot_helper#42(::Array{Any,1}, ::Function, ::GroupedErrors.ProcessedTable{IndexedTables.IndexedTable{Tuple{Float64,Tuple{Float32,Float32}},Tuple{Int64,Int64},IndexedTables.Columns{Tuple{Int64,Int64},Tuple{Array{Int64,1},Array{Int64,1}}},IndexedTables.Columns{Tuple{Float64,Tuple{Float32,Float32}},Tuple{Array{Float64,1},Array{Tuple{Float32,Float32},1}}}}}, ::Function, ::Symbol) at /Users/eddie/.julia/v0.6/GroupedErrors/src/plot_macro.jl:32
[14] (::GroupedErrors.#kw##plot_helper)(::Array{Any,1}, ::GroupedErrors.#plot_helper, ::GroupedErrors.ProcessedTable{IndexedTables.IndexedTable{Tuple{Float64,Tuple{Float32,Float32}},Tuple{Int64,Int64},IndexedTables.Columns{Tuple{Int64,Int64},Tuple{Array{Int64,1},Array{Int64,1}}},IndexedTables.Columns{Tuple{Float64,Tuple{Float32,Float32}},Tuple{Array{Float64,1},Array{Tuple{Float32,Float32},1}}}}}, ::Function, ::Symbol) at ./<missing>:0
[15] #plot_helper#53(::Array{Any,1}, ::Function, ::GroupedErrors.Selector{DataFrames.DataFrame,Plotting.##2#7,GroupedErrors.##2#7,Plotting.##4#9,Plotting.##3#8,Plotting.##5#10}, ::Function, ::Symbol) at /Users/eddie/.julia/v0.6/GroupedErrors/src/plot_macro.jl:42
[16] (::GroupedErrors.#kw##plot_helper)(::Array{Any,1}, ::GroupedErrors.#plot_helper, ::GroupedErrors.Selector{DataFrames.DataFrame,Plotting.##2#7,GroupedErrors.##2#7,Plotting.##4#9,Plotting.##3#8,Plotting.##5#10}, ::Function, ::Symbol) at ./<missing>:0
[17] plotData(::IndexedTables.IndexedTable{NamedTuples._NT_results{Float32},Tuple{Int64,Int64,Int64},IndexedTables.Columns{NamedTuples._NT_markedItems_repeat_iteration{Int64,Int64,Int64},NamedTuples._NT_markedItems_repeat_iteration{Array{Int64,1},Array{Int64,1},Array{Int64,1}}},IndexedTables.Columns{NamedTuples._NT_results{Float32},NamedTuples._NT_results{Array{Float32,1}}}}, ::Int64) at /Users/eddie/dev/single-qubit/Plotting.jl:17
[18] main() at /Users/eddie/dev/single-qubit/Main.jl:51
[19] include_from_node1(::String) at ./loading.jl:576
[20] include(::String) at ./sysimg.jl:14
[21] process_options(::Base.JLOptions) at ./client.jl:305
[22] _start() at ./client.jl:371
while loading /Users/eddie/dev/single-qubit/Main.jl, in expression starting on line 58
The behavior in the REPL is different from the command line. Any ideas on how to get the html output, or at least some output (preferably pdf/eps)? For example, Plots.savefig(plotResult, "plot.pdf")
also gives a warning:
WARNING: _show is not defined for this backend. m=application/pdf
and results in an empty plot.pdf
file.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.