2015-12-30 39 views
1

我是用户DiagrammeR来制作流程图。我需要在流程图框中的文本中插入≥和°C特殊字符(符号)。如何获得≥和°符号以显示在文本中?如何使用DiagrammeR将≥和°C符号插入流程图框中的文本中?

例如,

grViz(" 

digraph boxes_and_circles { 

#add node statements 
node[shape = rectangle, 
     style = open, 
     color = skyblue2, 
     fontname = Helvetica] 
#Node definitions with substituted label text 
R1 [label = 'Oral temp ≥38.3°C × 1 \nor oral temp 38.0 to 38.2°C × 1h \n or axillary temp ≥37.8°C × 1 \nSTOP LEVOFLOXACIN'] 
#... etc. 
+0

可以使用HTML ...'R1 [标号=“口腔温度≥ 38.3 ° C×1 \也不口服温度38.0至38.2 ° C×1H \ n或腋窝温度≥ 37.8 ° C×1 \ nSTOP LEVOFLOXACIN']'。所以'°'和'≥'用于度数大于等于 – user20650

回答

1

大于和程度的符号在文本渲染对我蛮好。

尝试运行此示例以仔细检查这不是由于图表代码中未包含在您的问题中的某处的另一个问题。

library(DiagrammeR) 
grViz(" 
    digraph boxes_and_circles { 

    # Node statements 
    node[shape = rectangle] 
    node1 [label = 'Test ≥'] 
    node2 [label = 'Test °C'] 

    node1 -> node2 
    } 
") 
相关问题