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
Is there a reason to depend on a plotting package?
Is there a value added compared to using one directly?
(; apistrat) =dataset(api) # see issue #27 on renaming `data` to `dataset`
dstrat =svydesign(data = apistrat, id = :1, strata =:stype, weights =:pw, fpc =:fpc);
using AlgebraOfGraphics
data(dstrat.variables) *mapping(:api99, :api00, markersize =:pw) |> draw
data(dstrat.variables) *mapping(:enroll, weights =:pw) *visual(Hist) |> draw
data(dstrat.variables) *mapping(:stype, :enroll; weights =:pw) *visual(BoxPlot) |> draw
Then you don't need to define all kinds of plotting functions here, but you encourage the user to use the full power of Makie/AlgebraOfGraphics or StatsPlots.jl/Plots.jl.
To simplify the life of users, you could of course find a way to do data(dstrat) * mapping(...) in AoG or @df dstrat plot(...) in StatsPlots (without the .variables). Probably it would be enough to define getproperty on a survey design.
The text was updated successfully, but these errors were encountered:
Thanks, @greimel
Your question goes back to why we are making the package. It's not just about these 3 functions. We want to offer all the functionality of the survey package in R. This is because myself, people in my office, and people in my community use the survey package, and would like to switch to Julia for performance. While users can figure out the commands that you have mentioned, it would be of no harm to export these. It will make the transition smoother.
Finally, implementing these functions are like picking low-hanging fruits. Students who are implementing these gain knowledge about the surveys, weights, the package, GitHub and also gain confidence. You can consider these to be training exercises.
Later on, we can remove these functions if there is a strong reason.
Once we reach the R package, we will focus on surpassing it. We will encourage the full power of the cutting-edge packages in Julia such as Turing, Makie, etc.
Is there a reason to depend on a plotting package?
Is there a value added compared to using one directly?
Then you don't need to define all kinds of plotting functions here, but you encourage the user to use the full power of Makie/AlgebraOfGraphics or StatsPlots.jl/Plots.jl.
To simplify the life of users, you could of course find a way to do
data(dstrat) * mapping(...)
in AoG or@df dstrat plot(...)
in StatsPlots (without the.variables
). Probably it would be enough to definegetproperty
on a survey design.The text was updated successfully, but these errors were encountered: