How to create stock candle chart with patches in netlogo? - patch

I want to draw a candle chart of a stock's historical data using patches, so that this candle chart is like a background where turtles can running on top of it. are patches alone capable of this task or do I have to use turtles instead of patches? I would prefer to use patches.
I am new to netlogo and I didn't find any available model example doing it. So, I wonder anyone can point out the way how I could achieve it.
Thanks a lot
Kenny

Related

How to check if a plot is visible under a tab panel?

I am working on data visualization with R and shiny.
It takes some time to load my visualization and be able to provide plots under tab panels.
Ex. I made 3 tabs for box plot, bar plot, and bean plot
Taking time to visualize the result is understandable, but I am not sure how to check if the plot is visible so that users do not need to wait even though incProcess function reports the program is done.
First, I recorded the time to visualize and tried to delay some time, but it is very subjective to the data input, so I do not think that is a good solution.
Would you be able to provide me solution?
Thank you
I think I need a solution NOT to check if a code is done but the visualization is done.

Is candlestick chart real time update possible with QCandlestickSeries in pyqt

I am trying create a python widget to plot candlestick chart with real time data in trading hours. So looking for best option to do it. I found QCandlestickSeries but it is not clear if we can get the chart to update with good performance when we keep updating last candle and when we keep adding new candle every x interval. Has someone tried this? Anyone knows if this is possible?
Thanks

R and googleVis - possible to make a "motion map"?

I am typically using R to do statistical analysis, and rather new to the data visualization capabilities. I'm trying to figure out if there is some way to marry the motion chart package gvisMotionChart with the mapping package, gvisGeoMap. I'd like to display a video of events over time, appearing on a map on their date of occurrence at lat/lon coordinates and then fading out. Anyone know if it's possible to do this? Any additional concerns if I have over 50,000 records (daily over 5 years) that I want to feed in to be displayed?
Please note that I do not have to use the gvis packages--I am just using these to motivate the idea. If there are other dynamic mapping packages available in R that will just draw on a shapefile and my event records, all the better.
Thanks!

How do I build a canvas line graph between 2 varying dates?

I'm trying to use canvas to build a line graph between 2 date points. I need the date measurements along the bottom of the graph to change based on the start and end date data, which can vary widely between what information is grabbed by the application. Are there any plugins that do this, specifically/dynamically?
There is a huge abundance of chart and graph plotting libraries that can do this, and gRaphaƫl seems to do what you ask for quite well.

using a graph in R in Powerpoint

I have certain x and y coordinates for the position of an animal for a certain time t-max. I am using the code in R:
for (t in 1:tmax) {
plot(x[1:t],y[1:t]);
Sys.sleep(0.1);
}
to see how the animal is moving with time. So this shows me the path from each value of x to the subsequent value, till tmax. So now i have to present my findings in a Powerpoint presentation. so i was wondering if there is a method to insert this graph in a slide so that when i click a button, the graph is plotted and everybody can understand how the animal is moving.
Have a look on the Animation-Package on Cran:
http://cran.r-project.org/web/packages/animation/index.html
The animations package is cool, but i found it hard to learn. Instead of sleeping after each point is plotted, you could save the graph, and then use a video editor to merge the graphs into a movie clip. Windows movie maker will do this for you.
I'm not a big fan of animation, and in this case it doesn't seem useful. Why not just plot the graph, or if the path is seriously tangled, plot with a rainbow colormap applied to the line so you can easily follow from start to finish? See plotrix::color.scale.lines

Resources