View source: R/update_muscle_colours_osim.R
update_muscle_colours_osim | R Documentation |
This function updates the muscle colours of an OpenSim model based on the given inputs. It reads in an OpenSim model, updates the muscle colours, and saves the model to a new file.
update_muscle_colours_osim(
model_input_file = "Baseline_markers.osim",
model_output_file = "Baseline_markers_coloured.osim",
colours = c("#009E73", "#009E73"),
muscles = c("bflh140_r", "bfsh140_r")
)
model_input_file |
Path to the input OpenSim model (.osim file). |
model_output_file |
Path to save the updated OpenSim model. |
colours |
A vector of colour codes (in hex format) for the muscles to be updated. |
muscles |
A vector of muscle names to be updated in the model. |
A .osim file with updated muscle colours.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.