Package: particles 0.2.3.9000

particles: A Graph Based Particle Simulator Based on D3-Force

Simulating particle movement in 2D space has many application. The 'particles' package implements a particle simulator based on the ideas behind the 'd3-force' 'JavaScript' library. 'particles' implements all forces defined in 'd3-force' as well as others such as vector fields, traps, and attractors.

Authors:Thomas Lin Pedersen [aut, cre], Andrei Kashcha [ctb]

particles_0.2.3.9000.tar.gz
particles_0.2.3.9000.zip(r-4.5)particles_0.2.3.9000.zip(r-4.4)particles_0.2.3.9000.zip(r-4.3)
particles_0.2.3.9000.tgz(r-4.4-x86_64)particles_0.2.3.9000.tgz(r-4.4-arm64)particles_0.2.3.9000.tgz(r-4.3-x86_64)particles_0.2.3.9000.tgz(r-4.3-arm64)
particles_0.2.3.9000.tar.gz(r-4.5-noble)particles_0.2.3.9000.tar.gz(r-4.4-noble)
particles_0.2.3.9000.tgz(r-4.4-emscripten)particles_0.2.3.9000.tgz(r-4.3-emscripten)
particles.pdf |particles.html
particles/json (API)
NEWS

# Install 'particles' in R:
install.packages('particles', repos = c('https://thomasp85.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/thomasp85/particles/issues

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

d3jsgraph-layoutnetworknetwork-visualizationparticlessimulation

7.17 score 119 stars 41 scripts 199 downloads 6 mentions 50 exports 28 dependencies

Last updated 2 years agofrom:b194ad3c5c. Checks:OK: 1 NOTE: 8. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 07 2024
R-4.5-win-x86_64NOTEOct 07 2024
R-4.5-linux-x86_64NOTEOct 07 2024
R-4.4-win-x86_64NOTEOct 07 2024
R-4.4-mac-x86_64NOTEOct 07 2024
R-4.4-mac-aarch64NOTEOct 07 2024
R-4.3-win-x86_64NOTEOct 07 2024
R-4.3-mac-x86_64NOTEOct 07 2024
R-4.3-mac-aarch64NOTEOct 07 2024

Exports:activateadd_particlesaquarium_genesisbigbang_genesiscenter_forceclear_historycollision_forcedominator_constraintevolutionsevolvefield_forcefilterget_historyhistory_lengthimposeinfinity_constraintis.simulationlink_forcemanybody_forcemap_forcemean_forcemutatemutate_allmutate_atparticlespath_constraintpetridish_genesisphyllotactic_genesispolygon_constraintpositionpredefined_genesisrandom_forcerecordreheatreimposereplace_particlesreset_forcerewieldsimulateslicetrap_forceunimposeunwieldvelocityvelocity_constraintwieldx_constraintx_forcey_constrainty_force

Dependencies:clicpp11digestdplyrfansigenericsglueigraphlatticelifecyclemagrittrMatrixmgcvnlmepillarpkgconfigpurrrR6rlangstringistringrtibbletidygraphtidyrtidyselectutf8vctrswithr

Introduction to Particles

Rendered fromintro.Rmdusingknitr::rmarkdownon Oct 07 2024.

Last update: 2022-08-19
Started: 2018-02-21

Readme and manuals

Help Manual

Help pageTopics
Center all particles around the origin without affecting velocitycenter_force
Models particles as circles with a given radius and pushes overlapping particles apartcollision_force
Restrict child position based on parent positiondominator_constraint
Move the simulation forward one or more stepsevolve
Apply a vector field to particlesfield_force
Particle initialisationaquarium_genesis bigbang_genesis genesis petridish_genesis phyllotactic_genesis predefined_genesis
Assign a force or constraint to a simulationimpose reimpose rewield unimpose unwield wield
Reposition particles outside a canvas so they wrap aroundinfinity_constraint
Attract or repel linked particleslink_force
Model attraction or repulsion between all particles in the systemmanybody_force
Apply a map to particlesmap_force
Apply the mean velocity of all the neighbors to a particlemean_force
Limit particle position to be along a path or outlinepath_constraint
Fixes particles to be inside a polygonpolygon_constraint
Modify the velocity randomly at each steprandom_force
Reset the velocity verlet of particles to a fixed valuereset_force
Start a simulation based on a graphclear_history evolutions get_history history_length is.simulation particles position record reheat simulate simulation velocity
Modify the particles in a simulationadd_interaction add_particles replace_particles simulation_modification
Attract and trap particles within polygonstrap_force
Limits particles to a specific velocity rangevelocity_constraint
Fixes particles to a horizontal positionx_constraint
Attract particles towards a horizontal positionx_force
Fixes particles to a vertical positiony_constraint
Attract particles towards a vertical positiony_force